[dm-devel] [PATCH v4 3/6] multipathd: don't update priority of failed paths

Benjamin Marzinski bmarzins at redhat.com
Mon Feb 27 18:26:40 UTC 2017


Multipathd shouldn't be updating the priority of failed paths in the
checkerloop. The current avoids this in almost all cases, but not all.
Close the loophole.

Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
---
 multipathd/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index 0f32b2c..553d1d1 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1467,7 +1467,8 @@ int update_prio(struct path *pp, int refresh_all)
 	}
 	oldpriority = pp->priority;
 	conf = get_multipath_config();
-	pathinfo(pp, conf, DI_PRIO);
+	if (pp->state != PATH_DOWN)
+		pathinfo(pp, conf, DI_PRIO);
 	put_multipath_config(conf);
 
 	if (pp->priority == oldpriority)
-- 
1.8.3.1




More information about the dm-devel mailing list