diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2020-08-14 21:46:51 +0300 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2020-08-29 02:43:56 +0300 |
commit | d7144f5c4cf4de95fdc3422943cf51c06aeaf7a7 (patch) | |
tree | 68dcef75966ff97846e21180fc76bee3bca8e801 /drivers | |
parent | a6ce7d7b4adaebc27ee7e78e5ecc378a1cfc221d (diff) | |
download | linux-d7144f5c4cf4de95fdc3422943cf51c06aeaf7a7.tar.xz |
nvme-fabrics: don't check state NVME_CTRL_NEW for request acceptance
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/host/fabrics.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index 4ec4829d6233..32f61fc5f4c5 100644 --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c @@ -576,7 +576,6 @@ bool __nvmf_check_ready(struct nvme_ctrl *ctrl, struct request *rq, * which is require to set the queue live in the appropinquate states. */ switch (ctrl->state) { - case NVME_CTRL_NEW: case NVME_CTRL_CONNECTING: if (nvme_is_fabrics(req->cmd) && req->cmd->fabrics.fctype == nvme_fabrics_type_connect) |