diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2013-06-11 00:40:57 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2013-07-25 00:36:41 +0200 |
commit | d24cdbfd28b7e0ffecb1e281d73e73c03a57f734 (patch) | |
tree | 5121604d0025974356f09bb0027e018f1be05e03 /lib/average.c | |
parent | vfio: Ignore sprurious notifies (diff) | |
download | linux-d24cdbfd28b7e0ffecb1e281d73e73c03a57f734.tar.xz linux-d24cdbfd28b7e0ffecb1e281d73e73c03a57f734.zip |
vfio-pci: Avoid deadlock on remove
If an attempt is made to unbind a device from vfio-pci while that
device is in use, the request is blocked until the device becomes
unused. Unfortunately, that unbind path still grabs the device_lock,
which certain things like __pci_reset_function() also want to take.
This means we need to try to acquire the locks ourselves and use the
pre-locked version, __pci_reset_function_locked().
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'lib/average.c')
0 files changed, 0 insertions, 0 deletions