nvme-tcp: don't poll a non-live queue
authorSagi Grimberg <sagi@grimberg.me>
Mon, 23 Mar 2020 23:43:52 +0000 (16:43 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 31 Mar 2020 15:57:32 +0000 (17:57 +0200)
commitf86e5bf817a57c7e6538dafee2fc65a525bb9935
tree840049e0ff2bcdff8eeca05f29d4ca14212c2331
parent25e5cb780e62bde432b401f312bb847edc78b432
nvme-tcp: don't poll a non-live queue

In error recovery we might be removing the queue so check we
can actually poll before we do.

Reported-by: Mark Wunderlich <mark.wunderlich@intel.com>
Tested-by: Mark Wunderlich <mark.wunderlich@intel.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c