]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Unblock reset_work on IO failure
authorKeith Busch <keith.busch@intel.com>
Tue, 14 May 2019 20:27:53 +0000 (14:27 -0600)
committerKeith Busch <keith.busch@intel.com>
Fri, 17 May 2019 17:04:04 +0000 (11:04 -0600)
commitec30a5b5d3b10c4930d8ccabf3fbf0582a1f4a4a
tree238af298a51abd7391b47e49662a77ae68b1f458
parent3a64bf2d481f69c3fd8ec337a4ce06ee1106b49b
nvme-pci: Unblock reset_work on IO failure

The reset_work waits for queued IO to complete before setting the
controller to live. If any of these times out and requeues, we won't be
able to restart the controller because the reset_work is already running.

Flush all entered requests to a failed completion if a timeout occurs
in the connecting state, and ensure the controller can't transition to
the live state after we've unblocked it from waiting for completions.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/pci.c