Skip to content

Add "reconfigure all" multipath command

Benjamin Marzinski dm-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesIn review
  2. v2 posting 2/24 patches 4 repliesSuperseded
  3. v2 posting 1/24 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches10 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4multipathd: move delayed_reconfig out of struct configlibmpathpersist/libmpathpersist.version libmultipath/config.h libmultipath/libmultipath.version +1 more+42 -380 replies
2/4multipathd: remove reconfigure from header file.multipathd/main.h+0 -10 replies
3/4multipathd: pass in the type of reconfigurelibmultipath/configure.c multipathd/cli_handlers.c multipathd/main.c +1 more+32 -290 replies
4/4multipathd: add "reconfigure all" command.multipath/main.c multipathd/cli.c multipathd/cli.h +3 more+23 -40 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMartin Wilck
SeriesR-b
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [dm-devel] [PATCH v3 0/4] Add "reconfigure all" multipath command

This patchset is supposed to replace Martin's

multipathd: add "force_reconfigure" option

patch from his uxlsnr overhaul patchset. It also makes the default reconfigure be a weak reconfigure, but instead of adding a configuration option to control this, it adds a new multipathd command, "reconfigure all", to do a full reconfigure. The HUP signal is left doing only weak reconfigures.

In order to keep from having two states that are handled nearly identically, the code adds an extra variable to track the type of configuration that was selected, but this could easily be switch to use a new DAEMON_CONFIGURE_ALL state instead.

The final patch, that added the new command, is meant to apply on top of Martin's changed client handler code. I can send one that works with the current client handler code, if people would rather review that.

Changes from v2 as suggested by Martin Wilck:
0003: configure() and enable_delayed_reconfig() directly access reload_type, instead of having the value passed in. schedule_reconfigure() takes an enum force_reload_types instead of a bool
0004: Modified to deal with schedule_reconfigure() changes.

Changes from v1 as suggested by Martin Wilck:

0001: update libmultipath.version to handle ABI change in struct config 0003: Clarify commit message

Benjamin Marzinski (4):
multipathd: move delayed_reconfig out of struct config
multipathd: remove reconfigure from header file.
multipathd: pass in the type of reconfigure
multipathd: add "reconfigure all" command.

 libmpathpersist/libmpathpersist.version | 12 ++--
 libmultipath/config.h                   |  1 -
 libmultipath/configure.c                |  2 +-
 libmultipath/libmultipath.version       | 22 +++----
 multipath/main.c                        |  2 +-
 multipathd/cli.c                        |  1 +
 multipathd/cli.h                        |  2 +
 multipathd/cli_handlers.c               | 12 +++-
 multipathd/main.c                       | 84 +++++++++++++++----------
 multipathd/main.h                       |  3 +-
 multipathd/multipathd.8                 | 10 ++-
 11 files changed, 88 insertions(+), 63 deletions(-)
Signature · 6 lines
2.17.2

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel