aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2025-04-24 10:18:01 -0700
committerChristoph Hellwig <hch@lst.de>2025-04-29 08:00:34 -0500
commita75401227eeb827b1a162df1aa9d5b33da921c43 (patch)
tree80dc941cec3c8bba16b5b1b43731d904badc9aed
parentublk: remove the check of ublk_need_req_ref() from __ublk_check_and_get_req (diff)
downloadwireguard-linux-a75401227eeb827b1a162df1aa9d5b33da921c43.tar.xz
wireguard-linux-a75401227eeb827b1a162df1aa9d5b33da921c43.zip
nvme-pci: fix queue unquiesce check on slot_reset
A zero return means the reset was successfully scheduled. We don't want to unquiesce the queues while the reset_work is pending, as that will just flush out requeued requests to a failed completion. Fixes: 71a5bb153be104 ("nvme: ensure disabling pairs with unquiesce") Reported-by: Dhankaran Singh Ajravat <dhankaran@meta.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index b178d52eac1b..c9e2a5450bc0 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3575,7 +3575,7 @@ static pci_ers_result_t nvme_slot_reset(struct pci_dev *pdev)
dev_info(dev->ctrl.device, "restart after slot reset\n");
pci_restore_state(pdev);
- if (!nvme_try_sched_reset(&dev->ctrl))
+ if (nvme_try_sched_reset(&dev->ctrl))
nvme_unquiesce_io_queues(&dev->ctrl);
return PCI_ERS_RESULT_RECOVERED;
}