Additional fixes and cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | limpathpersist: remove update_map_pr code for NULL pplibmpathpersist/ | +1 | 0 replies | |
| 2/14 | libmpathpersist: move update_map_pr to multipathdlibmpathpersist/ libmpathpersist/ libmpathpersist/ +1 more | +75 | 0 replies | |
| 3/14 | multipathd: clean up update_map_pr and mpath_pr_event_handlemultipathd/ | +24 | 0 replies | |
| 4/14 | libmpathpersist: clean up duplicate function declarationslibmpathpersist/ libmpathpersist/ mpathpersist/ | +3 | 0 replies | |
| 5/14 | multipathd: wrap setting and unsetting prflagmultipathd/ multipathd/ multipathd/ | +27 | 0 replies | |
| 6/14 | multipathd: unregister PR key when path is restored if necessarylibmultipath/ multipathd/ | +37 | 0 replies | |
| 7/14 | libmpathpersist: Fix-up reservation_key checkinglibmpathpersist/ | +36 | 0 replies | |
| 8/14 | libmpathpersist: change how reservation conflicts are handledlibmpathpersist/ | +45 | 0 replies | |
| 9/14 | libmpathpersist: Clear prkey in multipathd before unregisteringlibmpathpersist/ | +3 | 0 replies | |
| 10/14 | libmpathpersist: only clear the key if we are using the prkeys filelibmpathpersist/ | +2 | 3 replies | |
| 11/14 | libmpathpersist: Restore old reservation key on failurelibmpathpersist/ | +9 | 0 replies | |
| 12/14 | libmpatpersist: update reservation key before checking pathslibmpathpersist/ | +28 | 3 replies | |
| 13/14 | libmpathpersist: retry on conflicts in mpath_prout_commonlibmpathpersist/ libmpathpersist/ | +14 | 0 replies | |
| 14/14 | libmpathpersist: Don't always fail registrations for retryable errorslibmpathpersist/ | +63 | 0 replies |
Reviews trailers per patch
1 of 14 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Martin Wilck |
|---|---|
| Series | R-b |
| 1/14 | |
| 2/14 | |
| 3/14 | |
| 4/14 | |
| 5/14 | |
| 6/14 | |
| 7/14 | |
| 8/14 | |
| 9/14 | |
| 10/14 | R-b |
| 11/14 | |
| 12/14 | |
| 13/14 | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/14] Additional fixes and cleanups
This patchset builds on top of my previous libmpathpersist patchset, ("Improve mpathpersist's unavailable path handling") and add various fixes and cleanups to multipath's persistent reservation handling.
The issues handled by this patchset are:
- Handling removal of keys from paths that were down when the multipath device was unregistered.
- Changing how conflicts on key registration are handled. Instead of the current rollback method (which was broken anyways), libmpathpersist now retrys with REGISTER AND IGNORE, as long as the REGISTER command completed successfully down some of the paths.
- Changing when the reservation key is set to fix corner cases on failure and registration while paths are coming up.
- Retrying on conflicts in mpath_prout_common to fix corner cases when a path is coming up while a doing a reserve, preempt or clear.
- Allowing registrations to succeed when there are retryable errors, if the paths are actually down.
- Fixing the reservation key validation code
I realize that a number of these fixes are dealing with races between libmpathperist and multipathd, which points to shortcomings with the current design of libmpathpersist. The code could likely be simpler and more robust if limpathpersist was a thin wrapper around commands to multipathd, which handled issuing the actual persistent reservation commands. However, we have customers that need persistent reservations working well on currently released versions of the mutipath-tools, and redesigning how the libmpathpersist library works is a much larger task, and even harder to backport. I'd like to know if people think that would be a worthwhile task for later, however.
Benjamin Marzinski (14):
limpathpersist: remove update_map_pr code for NULL pp
libmpathpersist: move update_map_pr to multipathd
multipathd: clean up update_map_pr and mpath_pr_event_handle
libmpathpersist: clean up duplicate function declarations
multipathd: wrap setting and unsetting prflag
multipathd: unregister PR key when path is restored if necessary
libmpathpersist: Fix-up reservation_key checking
libmpathpersist: change how reservation conflicts are handled
libmpathpersist: Clear prkey in multipathd before unregistering
libmpathpersist: only clear the key if we are using the prkeys file
libmpathpersist: Restore old reservation key on failure
libmpatpersist: update reservation key before checking paths
libmpathpersist: retry on conflicts in mpath_prout_common
libmpathpersist: Don't always fail registrations for retryable errors
libmpathpersist/libmpathpersist.version | 1 - libmpathpersist/mpath_persist_int.c | 363 +++++++++++++----------- libmpathpersist/mpath_persist_int.h | 2 - libmpathpersist/mpath_pr_ioctl.c | 12 +- libmultipath/structs.h | 2 + mpathpersist/main.c | 2 - multipathd/cli_handlers.c | 11 +- multipathd/main.c | 132 +++++++-- multipathd/main.h | 2 + 9 files changed, 311 insertions(+), 216 deletions(-)
Signature · 1 line
2.48.1