[PATCHv2] nvme: add 'iopolicy' module parameter
Daniel Wagner
dwagner at suse.de
Fri Dec 17 10:03:58 PST 2021
On Fri, Dec 17, 2021 at 04:02:22PM +0100, Hannes Reinecke wrote:
> +static int iopolicy = NVME_IOPOLICY_NUMA;
> +module_param(iopolicy, int, 0444);
> +MODULE_PARM_DESC(iopolicy,
> + "Default multipath I/O policy; 0 - NUMA (default), 1 - Round-robin");
> +
> +void nvme_mpath_default_iopolicy(struct nvme_subsystem *subsys)
> +{
> + subsys->iopolicy = iopolicy;
Wouldn't make sense to check if iopolicy has a valid value too?
More information about the Linux-nvme
mailing list