From: Brian Bunker <brian@purestorage.com>
To: dm-devel@lists.linux.dev
Cc: Benjamin Marzinski <bmarzins@redhat.com>,
Martin Wilck <mwilck@suse.com>,
Christophe Varoqui <christophe.varoqui@opensvc.com>
Subject: [PATCH v5 0/1] multipathd: recheck WWIDs of re-added paths with the device
Date: Mon, 30 Nov 2026 12:25:57 -0800 [thread overview]
Message-ID: <20261130202558.28849-1-brian@purestorage.com> (raw)
During an array controller failover on an iSCSI host, multipathd
briefly put a path to one LUN into the map of another LUN, and I/O
meant for the first LUN landed on the second. See the v1 cover letter
for the full sequence.
In short: a change uevent reported the wrong WWID for one path. The
removal of the path from its map then blocked for 4.4 seconds while
the map was suspended, and the re-add used that same, by then 4.4
second old, uevent to put the path into the wrong map. The next
INQUIRY on the path, 140 ms after the re-add, returned the correct
WWID.
Changes in v5, after Martin's and Ben's review of v4:
- The check only runs for paths that are up, as Ben suggested. A path
that isn't up is checked by recheck_wwid when it comes up, so this
is no riskier than the existing recheck_wwid checks.
- PATH_ADD_REINIT is passed only when udev reported a changed WWID.
The re-add after a udev retrigger (INIT_REQUESTED_UDEV) takes the
normal path, so the fresh udev data is trusted and a persistently
wrong ID_SERIAL isn't checked over and over.
- If the device doesn't confirm the new WWID, or its WWID can't be
read, the path is left out. v4 kept the path when the SG_IO read
failed. check_path_wwid() now reports a mismatch and a failure
separately; check_path_wwid_change() still returns true only on a
mismatch, so its other callers behave as before.
- When the path is left out, pp->tick is set to retrigger_delay, as
pathinfo() does, and the message is logged at level 2 instead of 0.
- multipath.conf(5) now says that the check is for up paths and that
an unreadable WWID counts as unconfirmed.
Left for follow-ups, as discussed in the v4 thread: resetting
pp->retriggers once a path has a confirmed WWID, rescanning the path
(possibly asynchronously) when its WWID changed, and a mode in which
multipathd never trusts udev for the WWID.
We've seen the problem once and haven't reproduced it. We have been
running a v1-style patch on our test initiators since then without a
recurrence, which at this rate doesn't prove much either way.
Brian Bunker (1):
multipathd: recheck WWIDs of re-added paths with the device
multipath/multipath.conf.5.in | 8 ++--
multipathd/cli_handlers.c | 2 +-
multipathd/main.c | 74 +++++++++++++++++++++++++++--------
multipathd/main.h | 13 +++++-
4 files changed, 75 insertions(+), 22 deletions(-)
--
2.56.0
next reply other threads:[~2026-11-30 20:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 20:25 Brian Bunker [this message]
2026-11-30 20:25 ` [PATCH v5 1/1] multipathd: recheck WWIDs of re-added paths with the device Brian Bunker
2026-12-01 1:24 ` Benjamin Marzinski
2026-12-01 18:41 ` Brian Bunker
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=20261130202558.28849-1-brian@purestorage.com \
--to=brian@purestorage.com \
--cc=bmarzins@redhat.com \
--cc=christophe.varoqui@opensvc.com \
--cc=dm-devel@lists.linux.dev \
--cc=mwilck@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.