libmultipath/discovery.c: Fix a condition that will lead to a table reload during every check.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Christophe Varoqui
AppliedApplied.
Thanks.
Christophe Varoqui
www.opensvc.com
Quoted 29 lines · Sean Stewart
If
path_offlinesaysPATH_UPand the checker saysPATH_DOWN. In this case, pathinfo gets called twice, and the first call, fromupdate_priosets it to -1 because the checker says it's down. On the second pathinfo call, fromupdate_path_groups, it will call the prioritizer based on the fact that the prio is -1. This leads to a flip flop of the priority value and a reload on every check.Signed-off-by Sean Stewart <[email protected]>--- libmultipath/discovery.c | 2 -- 1 file changed, 2 deletions(-)libmultipath/discovery.c +0
-3@@ -1138,8 +1138,6 @@ pathinfo (struct path *pp, vector hwtable, int mask)if (!strlen (pp->wwid))get_uid (pp);get_prio (pp); - }else { - pp->priority =PRIO_UNDEF ; } } --1.8.3.1