commit | 90b1253e4139776e8257914ae9e2292d0de2fecc | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Fri Aug 17 21:29:06 2012 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Aug 22 10:26:13 2012 -0400 |
tree | 47ed9f35d8f58d42f6e3c8614d355b1edc86f51b | |
parent | 6d2cd3ce815b302e885b44ca1bdbe3c7db321c7a [diff] |
vfio: get rid of vfio_device_put()/vfio_group_get_device* races we really need to make sure that dropping the last reference happens under the group->device_lock; otherwise a loop (under device_lock) might find vfio_device instance that is being freed right now, has already dropped the last reference and waits on device_lock to exclude the sucker from the list. Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>