[PATCH] nvme: Fix disk names when not using nvme multipath
Keith Busch
keith.busch at intel.com
Wed Apr 18 08:34:11 PDT 2018
On Wed, Apr 18, 2018 at 05:04:29PM +0200, Christoph Hellwig wrote:
> On Wed, Apr 18, 2018 at 07:26:58AM -0600, Keith Busch wrote:
> > No-can-do. If we did that with nvme-multipath, we could find NMIC
> > namespaces using the susbystem instance for the disk name, and non-NMIC
> > using the controller instance: we'll have a different set of name
> > conflicts to deal with.
>
> True. І think I was also trying to solve the wrong problem to start
> with, that's what happens if you get up a 4am :)
>
> Another just as completely untested attempt below:
It's a bit of an eyesore, but looks like it will work for the most
part. :)
> diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
> index 197a6ba9700f..ffca28dd2836 100644
> --- a/drivers/nvme/host/core.c
> +++ b/drivers/nvme/host/core.c
> @@ -68,6 +68,11 @@ static bool streams;
> module_param(streams, bool, 0644);
> MODULE_PARM_DESC(streams, "turn on support for Streams write directives");
>
> +bool multipath = true;
> +module_param(multipath, bool, 0644);
I think the permissions just have to be 0444 so that the user can't change the
naming method after some disks were named with the alternate method.
> +MODULE_PARM_DESC(multipath,
> + "turn on native support for multiple controllers per subsystem");
More information about the Linux-nvme
mailing list