linux/drivers/nvme/host
Keith Busch b5875222de NVMe: IO ending fixes on surprise removal
This patch fixes a lost request discovered during IO + hot removal.

The driver's pci removal deletes gendisks prior to shutting down the
controller to allow dirty data to sync. Dirty data can not be synced on
a surprise removal, though, and would potentially block indefinitely.

The driver previously had marked the queue as dying in this scenario
to prevent new requests from attempting, however it will still block
for requests that already entered the queue. This patch fixes this by
quiescing IO first, then aborting the requeued requests before deleting
disks.

Reported-by: Sujith Pandel <sujith_pandel@dell.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Tested-by: Sujith Pandel <sujith_pandel@dell.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-12-22 10:12:04 -07:00
..
Kconfig NVMe: Add explicit block config dependency 2015-10-12 11:43:22 -06:00
Makefile lightnvm: Simplify config when disabled 2015-11-29 14:34:57 -07:00
lightnvm.c lightnvm: replace req queue with nvmdev for lld 2015-12-07 09:14:19 -07:00
nvme.h lightnvm: Simplify config when disabled 2015-11-29 14:34:57 -07:00
pci.c NVMe: IO ending fixes on surprise removal 2015-12-22 10:12:04 -07:00
scsi.c