From: Benjamin Marzinski <bmarzins@redhat.com>
To: Martin Wilck <martin.wilck@suse.com>
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>,
device-mapper development <dm-devel@lists.linux.dev>
Subject: Re: [PATCH 4/4] multipathd: print path offline message even without a checker
Date: Wed, 21 Jan 2026 11:02:10 -0500 [thread overview]
Message-ID: <aXD4gokRK8GZYSFY@redhat.com> (raw)
In-Reply-To: <cb0311f9641a398981a543a3698a5395edb27165.camel@suse.com>
On Wed, Jan 21, 2026 at 10:00:21AM +0100, Martin Wilck wrote:
> On Tue, 2026-01-20 at 23:23 -0500, Benjamin Marzinski wrote:
> > If a path has a checker selected and is offline, multipathd will
> > print a
> > "path offline" message. However if the checker isn't selected, for
> > instance because multipathd was started or reconfigured while the
> > path
> > was offline, multipathd was not printing the "path offline" message.
> > Fix that.
> >
> > Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
> > ---
> > multipathd/main.c | 5 ++---
> > 1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/multipathd/main.c b/multipathd/main.c
> > index 2140e432..69e4808f 100644
> > --- a/multipathd/main.c
> > +++ b/multipathd/main.c
> > @@ -96,12 +96,11 @@ mpath_pr_event_handle(struct path *pp, unsigned
> > int nr_keys_needed,
> >
> > #define LOG_MSG(lvl, pp) \
> > do { \
> > - if (pp->mpp && checker_selected(&pp->checker) && \
> > - lvl <= libmp_verbosity)
> > { \
> > + if (pp->mpp && lvl <= libmp_verbosity) { \
> > if (pp->sysfs_state == PATH_DOWN) \
>
> While at it, we should probably change this to "p->sysfs_state !=
> PATH_UP", because start_path_check will only call the checker for the
> PATH_UP case, and in other cases, the checker state will be stale.
Sure, although I'm pretty sure that will just mean that removed paths
might see a final log message, since PATH_PENDING paths won't see any,
and the only other sysfs_state options are PATH_UP and PATH_DOWN.
Actually, if we print an explicit "path removed" message, it could be
useful on the off chance that a removed path didn't transistion to
INIT_REMOVED like it should.
-Ben
> Regards,
> Martin
next prev parent reply other threads:[~2026-01-21 16:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 4:23 [PATCH 0/4] multipathd: Miscellaneous fixes Benjamin Marzinski
2026-01-21 4:23 ` [PATCH 1/4] multipathd: don't add removed/partial paths to new maps Benjamin Marzinski
2026-01-21 9:28 ` Martin Wilck
2026-01-21 4:23 ` [PATCH 2/4] multipathd: finish initalization of paths added while offline Benjamin Marzinski
2026-01-21 12:41 ` Martin Wilck
2026-01-21 15:43 ` Benjamin Marzinski
2026-01-21 4:23 ` [PATCH 3/4] multipathd: make "multipathd show status" busy checker better Benjamin Marzinski
2026-01-21 9:27 ` Martin Wilck
2026-01-21 15:50 ` Benjamin Marzinski
2026-01-21 4:23 ` [PATCH 4/4] multipathd: print path offline message even without a checker Benjamin Marzinski
2026-01-21 9:00 ` Martin Wilck
2026-01-21 16:02 ` Benjamin Marzinski [this message]
2026-01-21 17:01 ` 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=aXD4gokRK8GZYSFY@redhat.com \
--to=bmarzins@redhat.com \
--cc=christophe.varoqui@opensvc.com \
--cc=dm-devel@lists.linux.dev \
--cc=martin.wilck@suse.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.