summaryrefslogtreecommitdiff
path: root/arch/nds32
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2019-01-08 12:01:30 +0300
committerJens Axboe <axboe@kernel.dk>2019-01-24 03:16:59 +0300
commit39d57757467b6346bbc1a1f416e3057f681cf903 (patch)
treec93e6d73f7499d73db7ff87edefbea35bf7a1d7f /arch/nds32
parent4c174e6366746ae8d49f9cc409f728eebb7a9ac9 (diff)
downloadlinux-39d57757467b6346bbc1a1f416e3057f681cf903.tar.xz
nvme-tcp: fix timeout handler
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. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/nds32')
0 files changed, 0 insertions, 0 deletions