[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] rwlock and per-cpu rwlock recursive?

>>> On 28.02.18 at 11:28, <julien.grall@xxxxxxx> wrote:
> Looking at the implementation, I see recursion handling for 
> mm_write_lock but not for mm_read_lock. Can you confirm that only the 
> write lock can be taken recursively?

If by "write lock" you mean an arbitrary one, then the answer of
course is no. The mm write lock machinery adds recursiveness
around percpu_write_lock(). See e.g. _mm_write_lock().


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.