nvme: disable controller on reset state failure
authorKeith Busch <kbusch@kernel.org>
Wed, 28 Jun 2023 14:51:02 +0000 (07:51 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 30 Jun 2023 17:48:20 +0000 (10:48 -0700)
commit4e69d4dabd2379af57b0b8fb9b0d62c23f9cd3b8
tree0ce03217ba82e5973639e4b12d2d02de6160dd82
parenta2b5d5443fa7a0e9f26b31598bcc38c2b66300d9
nvme: disable controller on reset state failure

If the controller is not in a RESETTING state at the point of reset
work, we have to conclude the controller is being deleted. Go to the
cleanup on this condition to ensure proper pairing of request_queue
quiesce state.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c