From: Moger, Babu Date: Fri, 27 May 2011 14:30:19 +0000 (-0400) Subject: multipath-tools: Manual failback fix when priority changes X-Git-Tag: upstream/0.5.0~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=015de0f9fe36b097cc1401ae664da29a6a7218eb;p=platform%2Fupstream%2Fmultipath-tools.git multipath-tools: Manual failback fix when priority changes Current code switches the path-group when there is a change in priority. However, this is not the right thing to do when failback is set to manual. This patch fixes this problem. Call update_path_groups only if failback is immediate. Signed-off-by: Babu Moger --- diff --git a/multipathd/main.c b/multipathd/main.c index e0606b6..be236cb 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -1189,7 +1189,8 @@ check_path (struct vectors * vecs, struct path * pp) condlog(4, "path prio refresh"); if (update_prio(pp, new_path_up) && - pp->mpp->pgpolicyfn == (pgpolicyfn *)group_by_prio) + (pp->mpp->pgpolicyfn == (pgpolicyfn *)group_by_prio) && + pp->mpp->pgfailback == -FAILBACK_IMMEDIATE) update_path_groups(pp->mpp, vecs, !new_path_up); else if (need_switch_pathgroup(pp->mpp, 0)) { if (pp->mpp->pgfailback > 0 &&