Skip to content

libmultipath: utter less dev_loss_tmo warnings

[email protected] 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: enable linear ordering of bus/proto tuplelibmultipath/structs.c libmultipath/structs.h+21 -21 reply
2/4libmultipath: use bus_protocol_id() in snprint_path_protocol()libmultipath/print.c+21 -370 replies
3/4libmultipath: enable defining a static bitfieldlibmultipath/util.h+10 -00 replies
4/4libmultipath: only warn once about unsupported dev_loss_tmolibmultipath/discovery.c+3 -10 replies

Reviews trailers per patch

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

PatchBenjamin Marzinski
SeriesR-b
1/4
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [dm-devel] [PATCH 0/4] libmultipath: utter less dev_loss_tmo warnings

From: Martin Wilck <[email protected]>

Hi Christophe,

since 3ab1f3b ("libmultipath: print message if setting dev_loss_tmo is unsupported"), multipathd prints a warning at level 2 for every map for which dev_loss_tmo can't be set. This results in a large number of warnings if there are many maps with such unsupported protocols, like this:

multipathd[1398]: 36001405328d6683b6cb4739943adf643: setting dev_loss_tmo is unsupported for protocol scsi:unspec

This patch set makes changes the code to print this warning only once per unsupported protocol. It would have been simpler to never print the warning more than once, but I figured that might suppress important information in some cases.

Regards
Martin

Martin Wilck (4):
libmultipath: enable linear ordering of bus/proto tuple
libmultipath: use bus_protocol_id() in snprint_path_protocol()
libmultipath: enable defining a static bitfield
libmultipath: only warn once about unsupported dev_loss_tmo

 libmultipath/discovery.c |  4 ++-
 libmultipath/print.c     | 58 +++++++++++++++-------------------------
 libmultipath/structs.c   | 10 +++++++
 libmultipath/structs.h   | 13 +++++++--
 libmultipath/util.h      | 10 +++++++
 5 files changed, 55 insertions(+), 40 deletions(-)
Signature · 7 lines
2.35.1


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