Re: possible recursive locking issue

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

 




On 06/07/2017 23:10, Alex Williamson wrote:
> vfio_unpin_pages() also takes a read-lock on
> the same.  Why is this a problem?  We should be able to nest
> read-locks.

rwsem is fair in that it blocks out new readers if a writer is waiting.
In this case nesting causes a deadlock, because the outer read-lock will
never be released.

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux