* [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
* [PATCH v2] nvme-fabrics: request transport module
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
2 siblings, 1 reply; 5+ messages in thread
From: Damien Le Moal @ 2017-09-24 14:33 UTC (permalink / raw)
Sagi,
On 9/24/17 15:15, Sagi Grimberg wrote:
> Help userspace to not make sure transport module is
> loaded.
>
> Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
Shouldn't this read "Help userspace to make sure transport module is
loaded." ?
Extra "not"...
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] nvme-fabrics: request transport module
2017-09-24 14:33 ` Damien Le Moal
@ 2017-09-24 14:53 ` Christoph Hellwig
0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2017-09-24 14:53 UTC (permalink / raw)
On Sun, Sep 24, 2017@04:33:14PM +0200, Damien Le Moal wrote:
> > Help userspace to not make sure transport module is
> > loaded.
> >
> > Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
>
> Shouldn't this read "Help userspace to make sure transport module is
> loaded." ?
> Extra "not"...
It should. Be except for that typo the patch looks good to me:
Reviewed-by: Christoph Hellwig <hch at lst.de>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] nvme-fabrics: request transport module
2017-09-24 13:15 [PATCH v2] nvme-fabrics: request transport module Sagi Grimberg
2017-09-24 14:33 ` Damien Le Moal
@ 2017-09-25 11:19 ` Johannes Thumshirn
2017-10-04 7:47 ` Christoph Hellwig
2 siblings, 0 replies; 5+ messages in thread
From: Johannes Thumshirn @ 2017-09-25 11:19 UTC (permalink / raw)
Looks good (with the typo fix),
Reviewed-by: Johannes Thumshirn <jthumshirn at suse.de>
--
Johannes Thumshirn Storage
jthumshirn at suse.de +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] nvme-fabrics: request transport module
2017-09-24 13:15 [PATCH v2] nvme-fabrics: request transport module Sagi Grimberg
2017-09-24 14:33 ` Damien Le Moal
2017-09-25 11:19 ` Johannes Thumshirn
@ 2017-10-04 7:47 ` Christoph Hellwig
2 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2017-10-04 7:47 UTC (permalink / raw)
Applied to nvme-4.15.
^ permalink raw reply [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.