diff options
author | Keith Busch <kbusch@kernel.org> | 2023-06-28 17:46:56 +0300 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2023-06-30 20:47:41 +0300 |
commit | 2ab4e5f44a869eaf61d7520ad6296b91f67efeed (patch) | |
tree | b96507197cc55acce299f8b6b449b7fb6d4eb739 /drivers/nvme | |
parent | 99160af413b4ff1c3b4741e8a7583f8e7197f201 (diff) | |
download | linux-2ab4e5f44a869eaf61d7520ad6296b91f67efeed.tar.xz |
nvme: ensure unquiesce on teardown
The reset work is called on quiesced IO queues, so ensure these are
unquiesced after a failed reset to flush out any pending requests.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index b027e5e3f4ac..8eaa954aa6ed 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2778,6 +2778,7 @@ static void nvme_reset_work(struct work_struct *work) nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_DELETING); nvme_dev_disable(dev, true); nvme_mark_namespaces_dead(&dev->ctrl); + nvme_unquiesce_io_queues(&dev->ctrl); nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_DEAD); } |