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
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 ==