nvme-tcp: add clean action for failed reconnection
authorChao Leng <lengchao@huawei.com>
Thu, 21 Jan 2021 03:32:38 +0000 (11:32 +0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 09:26:12 +0000 (10:26 +0100)
commit70a99574a79f1cd4dc7ad56ea37be40844bfb97b
treece8338688ede0d8931e92d6edbbb527f3bb54197
parent958dc1d32c80566f58d18f05ef1f05bd32d172c1
nvme-tcp: add clean action for failed reconnection

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