nvme-tcp: stop auth work after tearing down queues in error recovery
authorSagi Grimberg <sagi@grimberg.me>
Sun, 13 Nov 2022 11:24:23 +0000 (13:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Nov 2022 07:36:37 +0000 (08:36 +0100)
commit1f1a4f89562d3b33b6ca4fc8a4f3bd4cd35ab4ea
treec04e5d2c4b08dabb86240db0067ee7713f03d777
parentd061a1bd1fff5332ee48601947abb414007a9610
nvme-tcp: stop auth work after tearing down queues in error recovery

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>
drivers/nvme/host/tcp.c