[PATCH 3/4] nvme: update the multipath warning in nvme_init_ns_head
John Meneghini
jmeneghi at redhat.com
Thu Feb 27 19:25:40 PST 2025
The new NVME_MULTIPATH_PARAM config option requires updates
to the warning message in nvme_init_ns_head(). Remove
the old warning message and add new ones.
Signed-off-by: John Meneghini <jmeneghi at redhat.com>
---
drivers/nvme/host/core.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 818d4e49aab5..c2b7e6834535 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -3823,8 +3823,16 @@ static int nvme_init_ns_head(struct nvme_ns *ns, struct nvme_ns_info *info)
dev_warn(ctrl->device,
"Found shared namespace %d, but multipathing not supported.\n",
info->nsid);
+#ifdef CONFIG_NVME_MULTIPATH
+#ifdef CONFIG_NVME_MULTIPATH_PARAM
+ dev_warn_once(ctrl->device,
+ "Shared namespace support requires core.nvme_multipath=Y.\n");
+
+#endif
+#else
dev_warn_once(ctrl->device,
- "Support for shared namespaces without CONFIG_NVME_MULTIPATH is deprecated and will be removed in Linux 6.0.\n");
+ "Shared namespace support requires CONFIG_NVME_MULTIPATH.\n");
+#endif
}
}
--
2.48.1
More information about the Linux-nvme
mailing list