nvme-multipath: use nvme_ctrl_use_ana helper to check ANA
PATCH 1/1 nvme-multipath: use nvme_ctrl_use_ana helper to check ANA
Call nvme_ctrl_use_ana helper to check whether the given controller uses ANA or not.
Signed-off-by Minwoo Im <[email protected]>
--- drivers/nvme/host/multipath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/multipath.c +1 -1
@@ -82,7 +82,7 @@ void nvme_failover_req(struct request *req)* ready to serve this namespace. Kick of a re-read of the ANA * information page, and just try any other available path for now. */ -if (nvme_is_ana_error (status) && ns->ctrl->ana_log_buf) { +if (nvme_is_ana_error (status) &&nvme_ctrl_use_ana (ns->ctrl)) {set_bit (NVME_NS_ANA_PENDING , &ns->flags);queue_work (nvme_wq, &ns->ctrl->ana_work); }
Signature · 7 lines
2.25.1 _______________________________________________ Linux-nvme mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-nvme
Reviewed-by Sagi Grimberg <[email protected]>
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Thanks,
applied to nvme-5.13.
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme