NVMe: Command abort handling fixes
authorKeith Busch <keith.busch@intel.com>
Thu, 8 Jan 2015 01:55:51 +0000 (18:55 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 8 Jan 2015 16:02:18 +0000 (09:02 -0700)
commitcef6a948271d5437f96e731878f2e9cb8c9820b7
tree76b1cb6bf8b267e403f9215bdc5e32c68d861af6
parent0fb59cbc5f133207535b25ec7d16fba24d549ee2
NVMe: Command abort handling fixes

Aborts all requeued commands prior to killing the request_queue. For
commands that time out on a dying request queue, set the "Do Not Retry"
bit on the command status so the command cannot be requeued. Finanally, if
the driver is requested to abort a command it did not start, do nothing.

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