[PATCH v3 1/9] nvme-fabrics: don't check state NVME_CTRL_NEW for request acceptance
James Smart
james.smart at broadcom.com
Thu Aug 20 16:49:08 EDT 2020
On 8/19/2020 10:36 PM, Sagi Grimberg wrote:
> 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.
>
> Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
> ---
> drivers/nvme/host/fabrics.c | 1 -
> 1 file changed, 1 deletion(-)
>
> 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)
Reviewed-by: James Smart <james.smart at broadcom.com>
-- james
More information about the Linux-nvme
mailing list