* [PATCH] nvme: add missing MODULE_ALIAS for fabrics transports
@ 2026-03-31 8:17 Geliang Tang
2026-04-08 6:10 ` Christoph Hellwig
2026-04-08 15:12 ` Keith Busch
0 siblings, 2 replies; 3+ messages in thread
From: Geliang Tang @ 2026-03-31 8:17 UTC (permalink / raw)
To: Justin Tee, Naresh Gottumukkala, Paul Ely, Keith Busch,
Jens Axboe, Christoph Hellwig, Sagi Grimberg, Hannes Reinecke
Cc: Geliang Tang, linux-nvme
From: Geliang Tang <tanggeliang@kylinos.cn>
The generic fabrics layer uses request_module("nvme-%s", opts->transport)
to auto-load transport modules. Currently, the nvme-tcp, nvme-rdma, and
nvme-fc modules lack MODULE_ALIAS entries for these names, which prevents
the kernel from automatically finding and loading them when requested.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
Hi,
Recently, I've been working on adding MPTCP support for NVMe over TCP, so
I added a new transport called "nvme-mptcp". The AI review in [1] reminded
me that I should add MODULE_ALIAS("nvme-mptcp"). Then I checked the other
transports and found that they were all missing the MODULE_ALIAS as well.
I felt it was necessary to add them, so I sent this patch.
Thanks,
-Geliang
[1]
https://sashiko.dev/#/patchset/cover.1774862875.git.tanggeliang@kylinos.cn
---
drivers/nvme/host/fc.c | 1 +
drivers/nvme/host/rdma.c | 1 +
drivers/nvme/host/tcp.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
index e1bb4707183c..e4f4528fe2a2 100644
--- a/drivers/nvme/host/fc.c
+++ b/drivers/nvme/host/fc.c
@@ -3968,3 +3968,4 @@ module_exit(nvme_fc_exit_module);
MODULE_DESCRIPTION("NVMe host FC transport driver");
MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("nvme-fc");
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index 57111139e84f..1ec6e867aedb 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -2432,3 +2432,4 @@ module_exit(nvme_rdma_cleanup_module);
MODULE_DESCRIPTION("NVMe host RDMA transport driver");
MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("nvme-rdma");
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index 243dab830dc8..02c95c32b07e 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -3071,3 +3071,4 @@ module_exit(nvme_tcp_cleanup_module);
MODULE_DESCRIPTION("NVMe host TCP transport driver");
MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("nvme-tcp");
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] nvme: add missing MODULE_ALIAS for fabrics transports
2026-03-31 8:17 [PATCH] nvme: add missing MODULE_ALIAS for fabrics transports Geliang Tang
@ 2026-04-08 6:10 ` Christoph Hellwig
2026-04-08 15:12 ` Keith Busch
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2026-04-08 6:10 UTC (permalink / raw)
To: Geliang Tang
Cc: Justin Tee, Naresh Gottumukkala, Paul Ely, Keith Busch,
Jens Axboe, Christoph Hellwig, Sagi Grimberg, Hannes Reinecke,
Geliang Tang, linux-nvme
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
> Recently, I've been working on adding MPTCP support for NVMe over TCP, so
> I added a new transport called "nvme-mptcp". The AI review in [1] reminded
> me that I should add MODULE_ALIAS("nvme-mptcp"). Then I checked the other
> transports and found that they were all missing the MODULE_ALIAS as well.
> I felt it was necessary to add them, so I sent this patch.
As a reminder: if you want that to go anywhere you need to engage with
the nvme technical working group, which requires a nvme membership
first. There will be no point in posting or even discussing this on
Linux mailing lists if it isn't approved by nvme.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] nvme: add missing MODULE_ALIAS for fabrics transports
2026-03-31 8:17 [PATCH] nvme: add missing MODULE_ALIAS for fabrics transports Geliang Tang
2026-04-08 6:10 ` Christoph Hellwig
@ 2026-04-08 15:12 ` Keith Busch
1 sibling, 0 replies; 3+ messages in thread
From: Keith Busch @ 2026-04-08 15:12 UTC (permalink / raw)
To: Geliang Tang
Cc: Justin Tee, Naresh Gottumukkala, Paul Ely, Jens Axboe,
Christoph Hellwig, Sagi Grimberg, Hannes Reinecke, Geliang Tang,
linux-nvme
On Tue, Mar 31, 2026 at 04:17:31PM +0800, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> The generic fabrics layer uses request_module("nvme-%s", opts->transport)
> to auto-load transport modules. Currently, the nvme-tcp, nvme-rdma, and
> nvme-fc modules lack MODULE_ALIAS entries for these names, which prevents
> the kernel from automatically finding and loading them when requested.
Thanks, applied to nvme-7.1.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-08 15:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 8:17 [PATCH] nvme: add missing MODULE_ALIAS for fabrics transports Geliang Tang
2026-04-08 6:10 ` Christoph Hellwig
2026-04-08 15:12 ` Keith Busch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox