Files
linux/drivers
Sagi Grimberg 550e0ea7e7 nvme-rdma: fix timeout handler
[ Upstream commit 4c174e6366 ]

Currently, we have several problems with the timeout
handler:
1. If we timeout on the controller establishment flow, we will hang
because we don't execute the error recovery (and we shouldn't because
the create_ctrl flow needs to fail and cleanup on its own)
2. We might also hang if we get a disconnet on a queue while the
controller is already deleting. This racy flow can cause the controller
disable/shutdown admin command to hang.

We cannot complete a timed out request from the timeout handler without
mutual exclusion from the teardown flow (e.g. nvme_rdma_error_recovery_work).
So we serialize it in the timeout handler and teardown io and admin
queues to guarantee that no one races with us from completing the
request.

Reported-by: Jaesoo Lee <jalee@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-05 17:58:51 +01:00
..
2019-02-12 19:47:18 +01:00
2018-11-13 11:08:18 -08:00
2019-02-23 09:07:26 +01:00
2019-03-05 17:58:51 +01:00
2018-08-20 11:36:07 +02:00
2018-12-21 14:15:17 +01:00
2018-11-13 11:08:51 -08:00
2018-11-27 16:13:09 +01:00
2019-02-27 10:09:03 +01:00
2019-02-12 19:46:59 +01:00