diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-24 20:42:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-24 20:42:31 -0500 |
commit | 2d08cd0ef89a24f5eb6c6801c48cd06bca230d6d (patch) | |
tree | d9bbec83fa54dd5338144089b6dcb570a40237e7 /drivers/vfio/pci/vfio_pci.c | |
parent | 5c85121bf618aece49155f6eea0d0b2c14c1a121 (diff) | |
parent | 3be3a074cf5ba641529d8fdae0e05ca642f23e12 (diff) |
Merge tag 'vfio-v3.14-rc1' of git://github.com/awilliam/linux-vfio
Pull vfio update from Alex Williamson:
- convert to misc driver to support module auto loading
- remove unnecessary and dangerous use of device_lock
* tag 'vfio-v3.14-rc1' of git://github.com/awilliam/linux-vfio:
vfio-pci: Don't use device_lock around AER interrupt setup
vfio: Convert control interface to misc driver
misc: Reserve minor for VFIO
Diffstat (limited to 'drivers/vfio/pci/vfio_pci.c')
-rw-r--r-- | drivers/vfio/pci/vfio_pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index 2319d206f630..7ba042498857 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c | |||
@@ -872,9 +872,13 @@ static pci_ers_result_t vfio_pci_aer_err_detected(struct pci_dev *pdev, | |||
872 | return PCI_ERS_RESULT_DISCONNECT; | 872 | return PCI_ERS_RESULT_DISCONNECT; |
873 | } | 873 | } |
874 | 874 | ||
875 | mutex_lock(&vdev->igate); | ||
876 | |||
875 | if (vdev->err_trigger) | 877 | if (vdev->err_trigger) |
876 | eventfd_signal(vdev->err_trigger, 1); | 878 | eventfd_signal(vdev->err_trigger, 1); |
877 | 879 | ||
880 | mutex_unlock(&vdev->igate); | ||
881 | |||
878 | vfio_device_put(device); | 882 | vfio_device_put(device); |
879 | 883 | ||
880 | return PCI_ERS_RESULT_CAN_RECOVER; | 884 | return PCI_ERS_RESULT_CAN_RECOVER; |