diff options
author | Keith Busch <keith.busch@intel.com> | 2015-12-11 23:14:28 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-22 20:12:04 +0300 |
commit | b5875222de2fb91339db79a753677ba4f68120d0 (patch) | |
tree | 458e729691435b753d23e860f7e76d6e0fbdf922 /block | |
parent | af096e2235c5de76af7e8749f59a90de07f5e943 (diff) | |
download | linux-b5875222de2fb91339db79a753677ba4f68120d0.tar.xz |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions