Re: [PATCH v2 2/3] nvme-multipath: add the NVME_MULTIPATH_PARAM config option
From: Keith Busch
Date: Mon Apr 14 2025 - 16:19:29 EST
On Sat, Mar 22, 2025 at 07:28:47PM -0400, John Meneghini wrote:
> +config NVME_MULTIPATH_PARAM
> + bool "NVMe multipath param"
> + depends on NVME_CORE && NVME_MULTIPATH
> + default y
> + help
> + This option controls the inclusion of the NVMe core module
> + "multipath" parameter. If this option is disabled the
> + nvme_core.multipath parameter is excluded from the kernel.
> + If this option is enabled the nvme_core.multipath parameter
> + is included in the kernel.
> +
> + If unsure, say Y.
> +
> config NVME_VERBOSE_ERRORS
> bool "NVMe verbose error reporting"
> depends on NVME_CORE
> diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
> index 6b12ca80aa27..cad76de2830a 100644
> --- a/drivers/nvme/host/multipath.c
> +++ b/drivers/nvme/host/multipath.c
> @@ -10,10 +10,11 @@
> #include "nvme.h"
>
> bool multipath = true;
> +#ifdef CONFIG_NVME_MULTIPATH_PARAM
> module_param(multipath, bool, 0444);
> MODULE_PARM_DESC(multipath,
> "turn on native support for multiple controllers per subsystem");
> -
> +#endif
John,
Is this the logic and wording you want this option to be? You, or at
least somebody, suggested to rename it DISABLE_MULTIPATH", default "n".
The end result is just a matter of setting it accordingly; I just don't
want to stall getting your feature in over a miscommunication. Thanks!