All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] multipath: add the ability to wait on events
@ 2026-11-26  5:24 Benjamin Marzinski
  2026-11-26  5:24 ` [PATCH 1/4] multipathd: make the wakeup and drain idle_fd code generic Benjamin Marzinski
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Benjamin Marzinski @ 2026-11-26  5:24 UTC (permalink / raw)
  To: Christophe Varoqui; +Cc: device-mapper development, Martin Wilck

Multipathd doesn't react immediately to multiple things. Reconfiguration
doesn't happen immediately. Devices can be added and removed from the
system, and multipathd doesn't react until it gets a uevent. Sometimes
users need to wait for multipathd to finish handling these events before
doing further work. For instance a user script that reconfigures
multipath, and then verifies the new configuration can fail if the
reconfigure doesn't happen fast enough. User scripts might also need to
wait till a device is completely removed from multipath handling before
they can continue, or wait for a multipath device to be fully added
through udev, etc.

This patchset doesn't add all of these wait commands. It just adds the
architecture for doing them and adds the "reconfigure wait" and
"reconfigure all wait" commands, to schedule and then wait for a
reconfigure. Tracking uevent removes and additions (and first change
events for multipath devices) so these can be waited on is more
complicated and I haven't finished with them yet. But I wanted to make
sure that we agree on the overall waiting architecture.

Benjamin Marzinski (4):
  multipathd: make the wakeup and drain idle_fd code generic
  multipathd: add infrastructure for uxlsnr waiting on events
  multipathd: make cli_handlers take a wait_node
  multipathd: add commands to wait for reconfigures to complete

 multipathd/callbacks.c     |   3 +
 multipathd/cli.c           |   1 +
 multipathd/cli.h           |   7 +-
 multipathd/cli_handlers.c  | 246 ++++++++++++++++++++-----------------
 multipathd/main.c          |  22 +++-
 multipathd/main.h          |   3 +-
 multipathd/multipathd.8.in |  19 ++-
 multipathd/uxlsnr.c        | 140 ++++++++++++++++++---
 multipathd/uxlsnr.h        |   4 +
 9 files changed, 312 insertions(+), 133 deletions(-)

-- 
2.56.0


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

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  5:24 [PATCH 0/4] multipath: add the ability to wait on events Benjamin Marzinski
2026-11-26  5:24 ` [PATCH 1/4] multipathd: make the wakeup and drain idle_fd code generic Benjamin Marzinski
2026-11-26  5:24 ` [PATCH 2/4] multipathd: add infrastructure for uxlsnr waiting on events Benjamin Marzinski
2026-11-26 11:42   ` Martin Wilck
2026-11-30 16:55     ` Benjamin Marzinski
2026-12-01 23:46       ` Benjamin Marzinski
2026-11-26  5:24 ` [PATCH 3/4] multipathd: make cli_handlers take a wait_node Benjamin Marzinski
2026-11-26  5:24 ` [PATCH 4/4] multipathd: add commands to wait for reconfigures to complete Benjamin Marzinski
2026-11-26 11:42   ` Martin Wilck
2026-11-30 19:05     ` Benjamin Marzinski

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.