All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH multipath-tools-0.4.7.rhel5.13 1/1] multipathd excessive path checker logging
@ 2009-06-25 17:50 Charlie Brady
  2009-06-26 20:50 ` Benjamin Marzinski
  2009-07-03 16:46 ` Unstable isci path and confusing logging Charlie Brady
  0 siblings, 2 replies; 10+ messages in thread
From: Charlie Brady @ 2009-06-25 17:50 UTC (permalink / raw)
  To: device-mapper development


multipathd logs a path checker message whenever state changes. But it also 
logs every non-changed message when verbosity is >=4 and newstate is 
PATH_UP or PATH_GHOST, and every non-changed message when verbosity is >= 
2 and newstate is PATH_DOWN.

I believe that the message should only be logged, once, when state 
changes.

Signed-off-by: Charlie Brady <charlieb@budge.apana.org.au>

--- multipath-tools-0.4.7.rhel5.13/multipathd/main.c	2009-06-25 13:32:57.248455000 -0400
+++ mezzanine_patched_multipath-tools-0.4.7.rhel5.13/multipathd/main.c	2009-06-25 13:32:12.968639000 -0400
@@ -1041,7 +1041,6 @@
  					enable_group(pp);
  			}
  			else if (newstate == PATH_UP || newstate == PATH_GHOST) {
-				LOG_MSG(4, checker_message(&pp->checker));
  				/*
  				 * double the next check delay.
  				 * max at conf->max_checkint
@@ -1055,8 +1054,6 @@
  				condlog(4, "%s: delay next check %is",
  						pp->dev_t, pp->tick);
  			}
-			else if (newstate == PATH_DOWN)
-				LOG_MSG(2, checker_message(&pp->checker));

  			pp->state = newstate;

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-07-03 19:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-25 17:50 [PATCH multipath-tools-0.4.7.rhel5.13 1/1] multipathd excessive path checker logging Charlie Brady
2009-06-26 20:50 ` Benjamin Marzinski
2009-06-26 23:54   ` Chandra Seetharaman
2009-06-27  1:39   ` Konrad Rzeszutek
2009-07-03 19:39     ` Charlie Brady
2009-06-29  6:19   ` Hannes Reinecke
2009-07-03 16:46 ` Unstable isci path and confusing logging Charlie Brady
2009-07-03 17:07   ` Charlie Brady
2009-07-03 17:14   ` Charlie Brady
2009-07-03 17:23     ` Charlie Brady

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.