]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4277b93aa05f351a454e9efe9ca135ee61201522
tree53f2db3c8f83b63561308fca8ac7f3b59423a9d3
parent29c31a12d093c3040ea1ea26feb21d90da68a875
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: 1fcf4b8ae898 ("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