projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99160af
)
nvme: ensure unquiesce on teardown
author
Keith Busch
<kbusch@kernel.org>
Wed, 28 Jun 2023 14:46:56 +0000
(07:46 -0700)
committer
Keith Busch
<kbusch@kernel.org>
Fri, 30 Jun 2023 17:47:41 +0000
(10:47 -0700)
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>
drivers/nvme/host/pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/pci.c
b/drivers/nvme/host/pci.c
index b027e5e3f4acbfc53434b6e02d2066b1a5251191..8eaa954aa6ed4fb376e9f773b0beebab9edf2fad 100644
(file)
--- 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);
}