]> Pileus Git - ~andy/linux/commit
MPT / PCI: Use pci_stop_and_remove_bus_device_locked()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 10 Jan 2014 14:27:56 +0000 (15:27 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 14 Jan 2014 19:14:25 +0000 (12:14 -0700)
commit64cdb4181d87900c6560f8c72d02c7ccf75c9070
tree7e534d6ee7d7a817024f50f60c85ee72e260d60f
parent8b9ec1da6a310b438516468c669a7e1be046b18c
MPT / PCI: Use pci_stop_and_remove_bus_device_locked()

Race conditions are theoretically possible between the MPT PCI device
removal and the generic PCI bus rescan and device removal that can be
triggered via sysfs.

To avoid those race conditions make the MPT PCI code use
pci_stop_and_remove_bus_device_locked().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/message/fusion/mptbase.c
drivers/scsi/mpt2sas/mpt2sas_base.c
drivers/scsi/mpt3sas/mpt3sas_base.c