Skip to contentSkip to conversation

Path check interval in multipathd is 1 second longer

PATCH Applied Kiyoshi Ueda 2 participants 2 messages Oct 12, 2005 – Oct 13, 2005 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi Christophe,

Current path check interval is 1 second longer than polling_interval setting in multipath.conf.

This bug affects the "no_path_retry" option.
For example, if no_path_retry is set in 1, retry (== path check) will not be launched in no-path situation.

multipathd/main.c +2 -7
diff -rup git/multipathd/main.c pathcheck-int-fix/multipathd/main.c
@@ -1175,13 +1175,8 @@ checkerloop (void *ap)
 			if (!pp->mpp)
 				continue;
 
-			if (pp->tick) {
-				/*
-				 * don't check this path yet
-				 */
-				pp->tick--;
-				continue;
-			}
+			if (pp->tick && --pp->tick)
+				continue; /* don't check this path yet */
 
 			/*
 			 * provision a next check soonest,

Regards,
Kiyoshi Ueda

#1 lore raw
Quoted 9 lines · Kiyoshi Ueda

Hi Christophe,

Current path check interval is 1 second longer than polling_interval setting in multipath.conf.

This bug affects the "no_path_retry" option.
For example, if no_path_retry is set in 1, retry (== path check) will not be launched in no-path situation.

Merged, thanks