Blame SOURCES/0012-multipathd-remove-duplicate-orphan_paths-in-flush_ma.patch

68b27c
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
68b27c
From: Benjamin Marzinski <bmarzins@redhat.com>
68b27c
Date: Tue, 11 May 2021 11:55:14 -0500
68b27c
Subject: [PATCH] multipathd: remove duplicate orphan_paths in flush_map
68b27c
68b27c
remove_map_and_stop_waiter() already calls orphan_paths() so flush_map()
68b27c
doesn't need to call orphan_paths() before calling
68b27c
remove_map_and_stop_waiter().
68b27c
68b27c
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
68b27c
---
68b27c
 multipathd/main.c | 1 -
68b27c
 1 file changed, 1 deletion(-)
68b27c
68b27c
diff --git a/multipathd/main.c b/multipathd/main.c
68b27c
index 449ce384..6090434c 100644
68b27c
--- a/multipathd/main.c
68b27c
+++ b/multipathd/main.c
68b27c
@@ -660,7 +660,6 @@ flush_map(struct multipath * mpp, struct vectors * vecs, int nopaths)
68b27c
 	else
68b27c
 		condlog(2, "%s: map flushed", mpp->alias);
68b27c
 
68b27c
-	orphan_paths(vecs->pathvec, mpp, "map flushed");
68b27c
 	remove_map_and_stop_waiter(mpp, vecs);
68b27c
 
68b27c
 	return 0;