nvme-fabrics: don't check state NVME_CTRL_NEW for request acceptance
authorSagi Grimberg <sagi@grimberg.me>
Fri, 14 Aug 2020 18:46:51 +0000 (11:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:34 +0000 (13:55 +0200)
commit6c63e56986d3bfd281bec617c5ad0149a0f50fd7
treeb11d84e0e6c0886ca99b95b8280994f83b5b0828
parent0a12c794513ccb18d2d2e1b5ef73d0536a403d25
nvme-fabrics: don't check state NVME_CTRL_NEW for request acceptance

[ Upstream commit d7144f5c4cf4de95fdc3422943cf51c06aeaf7a7 ]

NVME_CTRL_NEW should never see any I/O, because in order to start
initialization it has to transition to NVME_CTRL_CONNECTING and from
there it will never return to this state.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/fabrics.c