Skip to contentSkip to conversation

nvme-multipath: use nvme_ctrl_use_ana helper to check ANA

PATCH Applied Minwoo Im 3 participants 3 messages Feb 25, 2021 – Mar 9, 2021 NVMe

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

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.

---
 drivers/nvme/host/multipath.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/multipath.c +1 -1
index c658b73a41b7..bbb582b12226 100644
@@ -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