nvme/multipath: Disable runtime writable enabling parameter
authorKeith Busch <keith.busch@intel.com>
Thu, 26 Apr 2018 20:24:29 +0000 (14:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 3 May 2018 15:37:50 +0000 (09:37 -0600)
We can't allow the user to change multipath settings at runtime, as this
will create naming conflicts due to the different naming schemes used
for each mode.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/multipath.c

index 956e0b8e9c4d726b9d8d8d1025f04ca75252cbd2..3ded009e76313af9c2d7dcc531591a20affde0c7 100644 (file)
@@ -15,7 +15,7 @@
 #include "nvme.h"
 
 static bool multipath = true;
-module_param(multipath, bool, 0644);
+module_param(multipath, bool, 0444);
 MODULE_PARM_DESC(multipath,
        "turn on native support for multiple controllers per subsystem");