]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:44:00 +0000 (09:44 +0200)
commit012a413b28e1a86bd8959035005ef5c085a1294e
tree663c6dd7f4ac0d16e992103dbd20cde18c89e65f
parentce4f77bef276e7d2eb7ab03a5d08bcbaa40710ec
nvme-pci: fix queue unquiesce check on slot_reset

[ Upstream commit a75401227eeb827b1a162df1aa9d5b33da921c43 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c