]> git.baikalelectronics.ru Git - 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)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 09:26:12 +0000 (10:26 +0100)
commitd42a05bb84f3fb885d82741c15c517b33d9357ae
treece8338688ede0d8931e92d6edbbb527f3bb54197
parent397aa73b28286fae982e140097d0d02670ee92bd
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