]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: fix reset hang if controller died in the middle of a reset
authorSagi Grimberg <sagi@grimberg.me>
Thu, 30 Jul 2020 20:42:42 +0000 (13:42 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Fri, 28 Aug 2020 23:43:57 +0000 (16:43 -0700)
commit3a57fb3629f517b3e63547b3fce6e1d5224c3bf9
tree91e74929817b26140bac7093ae5be70efb7b4bd0
parent3c7e42329c5d091a6b2569f21986bbcdf5a24971
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 <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/rdma.c