All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/1] multipathd: recheck WWIDs of re-added paths with the device
@ 2026-11-30 20:25 Brian Bunker
  2026-11-30 20:25 ` [PATCH v5 1/1] " Brian Bunker
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Bunker @ 2026-11-30 20:25 UTC (permalink / raw)
  To: dm-devel; +Cc: Benjamin Marzinski, Martin Wilck, Christophe Varoqui

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-01 18:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 20:25 [PATCH v5 0/1] multipathd: recheck WWIDs of re-added paths with the device Brian Bunker
2026-11-30 20:25 ` [PATCH v5 1/1] " Brian Bunker
2026-12-01  1:24   ` Benjamin Marzinski
2026-12-01 18:41     ` Brian Bunker

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.