On Tue, 16 May 2017, Stefano Stabellini wrote: > > And why are you using a rw semaphore --- I only noticed two instances of use > > and both are writes. > > Yes, this is wrong, legacy from a previous version of the codebase. A > simple spin_lock should suffice for this use-case.
I replied too quickly: it is best as a semaphore because the functions within the critical regions can cause a reschedule. But there is no need to use a rw_semaphore, so I'll switch it to a regular semaphore. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel