From 5e7b6f63e1c6c60c4b8d377127a8a75b8e6eb58c Mon Sep 17 00:00:00 2001 From: Christophe Varoqui Date: Fri, 17 Feb 2006 23:58:26 +0100 Subject: [PATCH] [multipathd] due failback not happening If the failback period is set to more that four times the polling interval, paths will never fail back. This is because the failback_tick keeps getting reset. The attached patch fixes this. Benjamin Marzinski, Redhat --- multipathd/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multipathd/main.c b/multipathd/main.c index b2a038b..2229991 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -1265,7 +1265,8 @@ checkerloop (void *ap) pathinfo(pp, conf->hwtable, DI_PRIO); if (need_switch_pathgroup(pp->mpp, 0)) { - if (pp->mpp->pgfailback > 0) + if (pp->mpp->pgfailback > 0 && + pp->mpp->failback_tick <= 0) pp->mpp->failback_tick = pp->mpp->pgfailback + 1; else if (pp->mpp->pgfailback == -- 2.7.4