Skip to content

multipath-tools: prio handling for offline paths

Martin Wilck 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/4libmultipath: group_by_prio: fix signedness buglibmultipath/pgpolicies.c+1 -10 replies
2/4Revert "Set priority to '0' for PATH_BLOCKED or PATH_DOWN"libmultipath/discovery.c+0 -30 replies
3/4libmultipath: ana prioritizer: decrease log levellibmultipath/prioritizers/ana.c+1 -10 replies
4/4libmultipath: get_prio(): don't reset prio for inaccessible pathslibmultipath/discovery.c+11 -21 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-tools: prio handling for offline paths

A recent bug report revealed that the handling of path priorities is inconsistent in multipathd when paths fail. In the current code, depending on timing, the prio of a faild path may be reset to 0, reset to -1 (PRIO_UNDEF), or not reset at all. The inconsistency is most obvious with "group_by_prio", as it results in strange artefacts how failed paths are regrouped, and how path groups are sorted.

This series tries to address these issues.

The general mind set that I applied is that, in case of doubt, it's best to retain the priority that was retrieved while the path was last accessible.

Martin Wilck (4):
libmultipath: group_by_prio: fix signedness bug
Revert "Set priority to '0' for PATH_BLOCKED or PATH_DOWN"
libmultipath: ana prioritizer: decrease log level
libmultipath: get_prio(): don't reset prio for inaccessible paths

 libmultipath/discovery.c        | 16 +++++++++++-----
 libmultipath/pgpolicies.c       |  2 +-
 libmultipath/prioritizers/ana.c |  2 +-
 3 files changed, 13 insertions(+), 7 deletions(-)
Signature · 1 line
2.21.0