All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Wilck <mwilck@suse.com>
To: Xose Vazquez Perez <xose.vazquez@gmail.com>
Cc: DM-DEVEL ML <dm-devel@redhat.com>
Subject: Re: [dm-devel] [PATCH RFC] multipath-tools: update "Generic NVMe" options in hwtable
Date: Thu, 31 Mar 2022 13:02:54 +0200	[thread overview]
Message-ID: <636faa5a57cca0b51d12d5e50968124d5b187280.camel@suse.com> (raw)
In-Reply-To: <20220330194941.28470-1-xose.vazquez@gmail.com>

On Wed, 2022-03-30 at 21:49 +0200, Xose Vazquez Perez wrote:
> Removed values were default.

This is wrong for uid_attribute. You can see it when you run "make
test", which fails with your patch. It's also wrong for
retain_hwhandler, but that entry should indeed be removed, because
keeping it there is misleading at best. hwhandlers have no meaning for
NVMe, and retain_hwhandler is enforced to be true an all kernels since
4.3.

Regards,
Martin

> Check ANA, else fall back to CONST(multibus).
> 
> Cc: Martin Wilck <mwilck@suse.com>
> Cc: Benjamin Marzinski <bmarzins@redhat.com>
> Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
> Cc: DM-DEVEL ML <dm-devel@redhat.com>
> Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
> ---
>  libmultipath/hwtable.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
> index 0e1c0a41..81dca0d5 100644
> --- a/libmultipath/hwtable.c
> +++ b/libmultipath/hwtable.c
> @@ -88,9 +88,9 @@ static struct hwentry default_hw[] = {
>                 /* Generic NVMe */
>                 .vendor        = "NVME",
>                 .product       = ".*",
> -               .uid_attribute = DEFAULT_NVME_UID_ATTRIBUTE,
> -               .checker_name  = NONE,
> -               .retain_hwhandler = RETAIN_HWHANDLER_OFF,
> +               .pgpolicy      = GROUP_BY_PRIO,
> +               .pgfailback    = -FAILBACK_IMMEDIATE,
> +               .no_path_retry = NO_PATH_RETRY_QUEUE,
>         },
>         /*
>          * Apple

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


  reply	other threads:[~2022-03-31 11:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-30 19:49 [dm-devel] [PATCH RFC] multipath-tools: update "Generic NVMe" options in hwtable Xose Vazquez Perez
2022-03-31 11:02 ` Martin Wilck [this message]
2022-05-15 13:16   ` Xose Vazquez Perez
2022-05-19 12:35     ` Martin Wilck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=636faa5a57cca0b51d12d5e50968124d5b187280.camel@suse.com \
    --to=mwilck@suse.com \
    --cc=dm-devel@redhat.com \
    --cc=xose.vazquez@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.