nvme-tcp: fix possible hang waiting for icresp response
authorSagi Grimberg <sagi@grimberg.me>
Thu, 23 Jul 2020 23:42:26 +0000 (16:42 -0700)
committerChristoph Hellwig <hch@lst.de>
Sun, 26 Jul 2020 15:24:27 +0000 (17:24 +0200)
commitadc99fd378398f4c58798a1c57889872967d56a6
tree53f2db3c8f83b63561308fca8ac7f3b59423a9d3
parent1f273e255b285282707fa3246391f66e9dc4178f
nvme-tcp: fix possible hang waiting for icresp response

If the controller died exactly when we are receiving icresp
we hang because icresp may never return. Make sure to set a
high finite limit.

Fixes: 3f2304f8c6d6 ("nvme-tcp: add NVMe over TCP host driver")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c