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 3/4] multipathd: make "multipathd show status" busy checker better
Date: Wed, 21 Jan 2026 10:50:14 -0500 [thread overview]
Message-ID: <aXD1tsRC9PeR5aEX@redhat.com> (raw)
In-Reply-To: <a6931ca87fcb21eb20490be1f3a6b7b21d80985b.camel@suse.com>
On Wed, Jan 21, 2026 at 10:27:51AM +0100, Martin Wilck wrote:
> On Tue, 2026-01-20 at 23:23 -0500, Benjamin Marzinski wrote:
> > while uevent_listen() was grabbing new uevents, "multipathd show
> > status"
> > would still show show busy as "False". Add a check there, to make
> > catch
> > multipathd's uevent processing earlier. Also, access servicing_uev
> > (as
> > well as the new variable, adding_uev) atomically, just to make sure
> > that
> > the compiler doesn't do stupid things trying to optimize them.
> >
> > Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
>
> access to servicing_uev is protected by uevq_lockp. The
> atomic annotation isn't necessary for it, AFAICT.
True. I can remove that.
> I have to admit that I wasn't fully aware of the semantics of "busy".
> Naïvely, one would assume that it means "some thread of multipathd is
> doing something". But your intention in 69cb2d8 ("multipath: add "count
> paths" multipathd command") was that it means "states of paths and/or
> maps are imminent because of current uevent processing". With that in
> mind, taking "adding_uev" into account makes sense. I'm not so sure
> about the practical relevance, though. How likely is it to hit a
> situation where the uevent listener is working but the uevent
> dispatcher hasn't been woken up yet?
I saw it happen at the start of a uevent surge. To be honest, I don't
know why uevent_receive_events() took so long to return, but it seemed
like extending the check is a pretty painless way to catch that.
-Ben
> Martin
next prev parent reply other threads:[~2026-01-21 15:50 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 [this message]
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
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=aXD1tsRC9PeR5aEX@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.