From: Al Viro Date: Sat, 18 Aug 2012 01:29:06 +0000 (-0400) Subject: vfio: get rid of vfio_device_put()/vfio_group_get_device* races X-Git-Tag: v3.6-rc3~7^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90b1253e4139776e8257914ae9e2292d0de2fecc;p=pandora-kernel.git 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 Signed-off-by: Al Viro --- Reading git-diff-tree failed