]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
nvme-tcp: add clean action for failed reconnection
authorChao Leng <lengchao@huawei.com>
Thu, 21 Jan 2021 03:32:38 +0000 (11:32 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:46 +0000 (18:31 +0200)
commit20ce41cc524a2d4e37b784e0a66bc2ee9b540b43
tree98c1cf267b275c621821d4a297168e212022148e
parent0f752c7674d9e4e41dfd48ef7cc456520c35b066
nvme-tcp: add clean action for failed reconnection

BugLink: https://bugs.launchpad.net/bugs/1920235
[ Upstream commit 70a99574a79f1cd4dc7ad56ea37be40844bfb97b ]

If reconnect failed after start io queues, the queues will be unquiesced
and new requests continue to be delivered. Reconnection error handling
process directly free queues without cancel suspend requests. The
suppend request will time out, and then crash due to use the queue
after free.

Add sync queues and cancel suppend requests for reconnection error
handling.

Signed-off-by: Chao Leng <lengchao@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/nvme/host/tcp.c