]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/MSI: Skip disabling disconnected devices
authorKeith Busch <keith.busch@intel.com>
Thu, 30 Mar 2017 03:49:11 +0000 (22:49 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 30 Mar 2017 03:55:07 +0000 (22:55 -0500)
commitcafdfe58fde4e4c6823e1308bcaa90c904c63ed8
treea973d7ad933e06c89f39368f86fc33ef9b759648
parente19c05bfbbffa14529144cdad49280a7009affc2
PCI/MSI: Skip disabling disconnected devices

Check the device connected state prior to executing device shutdown
operations or writing MSI messages so that tear down on disconnected
devices completes quicker.

Tested-by: Krishna Dhulipala <krishnad@fb.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Wei Zhang <wzhang@fb.com>
drivers/pci/msi.c