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

A crash happens when inject 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/rdma.c