All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] nvme-fabrics: request transport module
@ 2017-09-24 13:15 Sagi Grimberg
  2017-09-24 14:33 ` Damien Le Moal
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sagi Grimberg @ 2017-09-24 13:15 UTC (permalink / raw)


Help userspace to not make sure transport module is
loaded.

Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
Changes from v1:
- got rid of redundant module name resolution code and ignore request_module
  retcode

 drivers/nvme/host/fabrics.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 6d68738f01ea..ef38552911d4 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -945,6 +945,9 @@ nvmf_create_ctrl(struct device *dev, const char *buf, size_t count)
 	if (ret)
 		goto out_free_opts;
 
+
+	request_module("nvme-%s", opts->transport);
+
 	/*
 	 * Check the generic options first as we need a valid transport for
 	 * the lookup below.  Then clear the generic flags so that transport
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-04  7:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-24 13:15 [PATCH v2] nvme-fabrics: request transport module Sagi Grimberg
2017-09-24 14:33 ` Damien Le Moal
2017-09-24 14:53   ` Christoph Hellwig
2017-09-25 11:19 ` Johannes Thumshirn
2017-10-04  7:47 ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.