Re: [Xen-devel] [PATCH] xen/arm: io: Protect the handlers with a read-write lock

2016-07-11 Thread Julien Grall
Hi Stefano, On 11/07/16 18:49, Stefano Stabellini wrote: On Tue, 28 Jun 2016, Julien Grall wrote: Currently, accessing the I/O handlers does not require to take a lock because new handlers are always added at the end of the array. In a follow-up patch, this array will be sort to optimize the lo

Re: [Xen-devel] [PATCH] xen/arm: io: Protect the handlers with a read-write lock

2016-07-11 Thread Stefano Stabellini
On Tue, 28 Jun 2016, Julien Grall wrote: > Currently, accessing the I/O handlers does not require to take a lock > because new handlers are always added at the end of the array. In a > follow-up patch, this array will be sort to optimize the look up. > > Given that most of the time the I/O handler

[Xen-devel] [PATCH] xen/arm: io: Protect the handlers with a read-write lock

2016-06-28 Thread Julien Grall
Currently, accessing the I/O handlers does not require to take a lock because new handlers are always added at the end of the array. In a follow-up patch, this array will be sort to optimize the look up. Given that most of the time the I/O handlers will not be modify, using a spinlock will add con