[PATCH v2 11/13] nvme-multipath: add nvme_mpath_head_queue_if_no_path()
John Garry
john.g.garry at oracle.com
Tue Apr 28 04:12:54 PDT 2026
Add a wrapper to call into mpath_head_queue_if_no_path().
Signed-off-by: John Garry <john.g.garry at oracle.com>
---
drivers/nvme/host/nvme.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index b4fe7a7dd7f73..f96ad4f890797 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -1080,6 +1080,11 @@ static inline void nvme_mpath_synchronize(struct nvme_ns_head *head)
mpath_synchronize(head->mpath_head);
}
+static inline bool nvme_mpath_head_queue_if_no_path(struct nvme_ns_head *head)
+{
+ return mpath_head_queue_if_no_path(head->mpath_head);
+}
+
static inline void nvme_trace_bio_complete(struct request *req)
{
struct nvme_ns *ns = req->q->queuedata;
@@ -1200,6 +1205,10 @@ static inline bool nvme_mpath_queue_if_no_path(struct nvme_ns_head *head)
{
return false;
}
+static inline bool nvme_mpath_head_queue_if_no_path(struct nvme_ns_head *head)
+{
+ return false;
+}
#endif /* CONFIG_NVME_MULTIPATH */
int nvme_ns_get_unique_id(struct nvme_ns *ns, u8 id[16],
--
2.43.5
More information about the Linux-nvme
mailing list