]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: stop auth work after tearing down queues in error recovery
authorSagi Grimberg <sagi@grimberg.me>
Sun, 13 Nov 2022 11:24:24 +0000 (13:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:55 +0000 (12:59 +0100)
commit28de08804cc6367fecd8564d848d0aaf65e96bc5
tree4e2f9ab8e84662cdd3c395e829f5d67494580e7b
parent1b0f1bbdf46b2d0f640b67cf41843d3077c52e64
nvme-rdma: stop auth work after tearing down queues in error recovery

[ Upstream commit 3cb5b2dd75b7add8aeb84af4b65dac1378e3b0ad ]

when starting error recovery there might be a authentication work
running, and it involves I/O commands. Given the controller is tearing
down there is no chance for the I/O to complete other than timing out
which may unnecessarily take a full io timeout.

So first tear down the queues, fail/cancel all inflight I/O (including
potentially authentication) and only then stop authentication. This
ensures that failover is not stalled due to blocked authentication I/O.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/rdma.c