[PATCH v2 2/3] nvme-multipath: add the NVME_MULTIPATH_PARAM config option
Christoph Hellwig
hch at lst.de
Mon Apr 7 08:01:24 PDT 2025
On Fri, Apr 04, 2025 at 06:28:10PM -0400, John Meneghini wrote:
>> So maybe invert the option to
>>
>> config NVME_MULTIPATH_DISABLE
>> bool "Allow overriding the default nvme-multipath parameter"
>
> So the question is: do you want the core_nvme.multipath parameter
> to be excluded by default, or included by default?
I can live with it either way.
> Keith and I agreed to call this CONFIG_NVME_DISBALE_MULTIPATH_PARAM.
> However during testing I realized that many of the default make 'config'
> rules would end up with CONFIG_NVME_DISBALE_MULTIPATH_PARAM=y,
> even if I set the config rule to "default n".
>
> For example:
>
> make localmodconfig
> make allmodconfig
>
> would end up with compiling out the core_nvme.multipath parameter and I
> don't think this is what we want.
Weird, how does that override the explicit default statement?
> How about something simple like this:
>
> +config NVME_ENABLE_MULTIPATH_PARAM
> + bool "NVMe enable core_nvme.multipath param"
> + depends on NVME_CORE && NVME_MULTIPATH
> + default y
"default y" is the default, so it can be skipped.
More information about the Linux-nvme
mailing list