]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Use pci_stop_and_remove_bus_device_locked()
authorKeith Busch <keith.busch@intel.com>
Mon, 23 Jun 2014 21:24:53 +0000 (15:24 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Nov 2014 20:17:07 +0000 (13:17 -0700)
commit2cdb1ca8f2c0e61b9ad3cdd5d912c44df7610883
tree2eabaab7028bd9a18a554914cad42e0c241c4904
parentb06c49f74ce1bd2ee6f7561aed01a2176556a48c
NVMe: Use pci_stop_and_remove_bus_device_locked()

Race conditions are theoretically possible between the NVMe 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 NVMe code use
pci_stop_and_remove_bus_device_locked().

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c