summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2013-02-14 14:02:13 -0700
committerAlex Williamson <alex.williamson@redhat.com>2013-02-14 14:02:13 -0700
commite014e9444aedc365742d533e1443b22470cc67b9 (patch)
tree5647eca5f1a28297b023fd1a7b9b1c37030de9a6 /usr
parent906ee99dd2a5c819c1171ce5eaf6c080c027e58c (diff)
downloadop-kernel-dev-e014e9444aedc365742d533e1443b22470cc67b9.zip
op-kernel-dev-e014e9444aedc365742d533e1443b22470cc67b9.tar.gz
vfio: Protect vfio_dev_present against device_del
vfio_dev_present is meant to give us a wait_event callback so that we can block removing a device from vfio until it becomes unused. The root of this check depends on being able to get the iommu group from the device. Unfortunately if the BUS_NOTIFY_DEL_DEVICE notifier has fired then the device-group reference is no longer searchable and we fail the lookup. We don't need to go to such extents for this though. We have a reference to the device, from which we can acquire a reference to the group. We can then use the group reference to search for the device and properly block removal. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud