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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 07:58:40 +0000 (09:58 +0200)
commit49fe954ca02c51c0af0cf3fa54c88fd63c9d71d6
tree59e8f64c92f4e5686ecb8bd31ac90f3103ba0863
parentcc77fa81043f4b219317430b8c77bcb083c8676f
nvme-tcp: fix possible hang waiting for icresp response

[ Upstream commit adc99fd378398f4c58798a1c57889872967d56a6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/tcp.c