nvme-pci: fix queue unquiesce check on slot_reset
authorKeith Busch <kbusch@kernel.org>
Thu, 24 Apr 2025 17:18:01 +0000 (10:18 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 13:00:34 +0000 (08:00 -0500)
commita75401227eeb827b1a162df1aa9d5b33da921c43
tree80dc941cec3c8bba16b5b1b43731d904badc9aed
parenta584b2630b0d31f8a20e4ccb4de370b160177b8a
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>
drivers/nvme/host/pci.c