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