Skip to content

multipath: add the ability to wait on events

Benjamin Marzinski dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4multipathd: make the wakeup and drain idle_fd code genericmultipathd/uxlsnr.c+11 -70 replies
2/4multipathd: add infrastructure for uxlsnr waiting on eventsmultipathd/main.c multipathd/uxlsnr.c multipathd/uxlsnr.h+122 -91 reply
3/4multipathd: make cli_handlers take a wait_nodemultipathd/cli.h multipathd/cli_handlers.c multipathd/uxlsnr.c+120 -1100 replies
4/4multipathd: add commands to wait for reconfigures to completemultipathd/callbacks.c multipathd/cli.c multipathd/cli.h +4 more+59 -71 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] multipath: add the ability to wait on events

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(-)
Signature · 1 line
2.56.0