nvme-fabrics: fail non-ready command only for NVME_CTRL_DELETING_NOIO
Sagi Grimberg
maintainerPATCH 1/1 nvme-fabrics: fail non-ready command only for NVME_CTRL_DELETING_NOIO
We allow NVME_CTRL_DELETING to accept I/O.
Signed-off-by Sagi Grimberg <[email protected]>
---
Christoph, another patch we want to fold into97e9bb2b27bc ("nvme: fix deadlock in disconnect during scan_work and/or ana_work")
thanks...
drivers/nvme/host/fabrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/fabrics.c +1 -1
@@ -547,7 +547,7 @@ static struct nvmf_transport_ops *nvmf_lookup_transport(blk_status_t nvmf_fail_nonready_command (struct nvme_ctrl *ctrl,struct request *rq) { -if (ctrl->state !=NVME_CTRL_DELETING && +if (ctrl->state !=NVME_CTRL_DELETING_NOIO && ctrl->state !=NVME_CTRL_DEAD && !blk_noretry_request (rq) && !(rq->cmd_flags &REQ_NVME_MPATH ))return BLK_STS_RESOURCE ;
Signature · 7 lines
2.25.1 _______________________________________________ Linux-nvme mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-nvme
Christoph Hellwig
maintainerQuoted 8 lines · Sagi Grimberg
We allow
NVME_CTRL_DELETINGto accept I/O.Signed-off-by Sagi Grimberg <[email protected]>---
Christoph, another patch we want to fold into97e9bb2b27bc("nvme: fix deadlock in disconnect duringscan_workand/orana_work")thanks...
Folded, thanks.
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme