Blame SOURCES/0005-libmultipath-fix-marginal_paths-nr_active-check.patch

a1c519
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a1c519
From: Benjamin Marzinski <bmarzins@redhat.com>
a1c519
Date: Tue, 29 Jan 2019 18:26:04 -0600
a1c519
Subject: [PATCH] libmultipath: fix marginal_paths nr_active check
a1c519
a1c519
Marginal paths are SHAKY, so they don't count towards the number of
a1c519
active paths. poll_io_err_stat() shouldn't automatically reinstate a
a1c519
marginal path if there already is an active path.
a1c519
a1c519
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
a1c519
---
a1c519
 libmultipath/io_err_stat.c | 2 +-
a1c519
 1 file changed, 1 insertion(+), 1 deletion(-)
a1c519
a1c519
diff --git a/libmultipath/io_err_stat.c b/libmultipath/io_err_stat.c
a1c519
index 72aacf3..554b777 100644
a1c519
--- a/libmultipath/io_err_stat.c
a1c519
+++ b/libmultipath/io_err_stat.c
a1c519
@@ -481,7 +481,7 @@ static int poll_io_err_stat(struct vectors *vecs, struct io_err_stat_path *pp)
a1c519
 		 */
a1c519
 		path->tick = 1;
a1c519
 
a1c519
-	} else if (path->mpp && path->mpp->nr_active > 1) {
a1c519
+	} else if (path->mpp && path->mpp->nr_active > 0) {
a1c519
 		io_err_stat_log(3, "%s: keep failing the dm path %s",
a1c519
 				path->mpp->alias, path->dev);
a1c519
 		path->io_err_pathfail_cnt = PATH_IO_ERR_WAITING_TO_CHECK;
a1c519
-- 
a1c519
2.17.2
a1c519