nvme-fabrics: request transport module
authorSagi Grimberg <sagi@grimberg.me>
Sun, 24 Sep 2017 13:15:55 +0000 (16:15 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Oct 2017 07:43:58 +0000 (09:43 +0200)
Help userspace to make sure transport module is loaded.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c

index 555c976cc2ee7aae729c6465003b5cdffa11d594..8bca36a469245011735e746313d15a99aa7c9bd1 100644 (file)
@@ -841,6 +841,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