diff options
author | Sagi Grimberg <[email protected]> | 2020-07-30 13:42:42 -0700 |
---|---|---|
committer | Sagi Grimberg <[email protected]> | 2020-08-28 16:43:57 -0700 |
commit | 2362acb6785611eda795bfc12e1ea6b202ecf62c (patch) | |
tree | 91e74929817b26140bac7093ae5be70efb7b4bd0 /net/switchdev/switchdev.c | |
parent | 0475a8dcbcee92a5d22e40c9c6353829fc6294b8 (diff) |
nvme-rdma: fix reset hang if controller died in the middle of a reset
If the controller becomes unresponsive in the middle of a reset, we
will hang because we are waiting for the freeze to complete, but that
cannot happen since we have commands that are inflight holding the
q_usage_counter, and we can't blindly fail requests that times out.
So give a timeout and if we cannot wait for queue freeze before
unfreezing, fail and have the error handling take care how to
proceed (either schedule a reconnect of remove the controller).
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions