Blame SOURCES/0196-RHBZ-1239173-dont-set-flag.patch

4728c8
---
4728c8
 libmultipath/configure.c |    7 +++++--
4728c8
 1 file changed, 5 insertions(+), 2 deletions(-)
4728c8
4728c8
Index: multipath-tools-130222/libmultipath/configure.c
4728c8
===================================================================
4728c8
--- multipath-tools-130222.orig/libmultipath/configure.c
4728c8
+++ multipath-tools-130222/libmultipath/configure.c
4728c8
@@ -257,7 +257,7 @@ extern int
4728c8
 setup_map (struct multipath * mpp, char * params, int params_size)
4728c8
 {
4728c8
 	struct pathgroup * pgp;
4728c8
-	int i;
4728c8
+	int i, old_nr_active;
4728c8
 
4728c8
 	/*
4728c8
 	 * don't bother if devmap size is unknown
4728c8
@@ -311,8 +311,12 @@ setup_map (struct multipath * mpp, char
4728c8
 	if (mpp->pgpolicyfn && mpp->pgpolicyfn(mpp))
4728c8
 		return 1;
4728c8
 
4728c8
+	old_nr_active = mpp->nr_active;
4728c8
 	mpp->nr_active = pathcount(mpp, PATH_UP) + pathcount(mpp, PATH_GHOST);
4728c8
 
4728c8
+	if (mpp->nr_active && !old_nr_active)
4728c8
+		mpp->force_udev_reload = 1;
4728c8
+
4728c8
 	/*
4728c8
 	 * ponders each path group and determine highest prio pg
4728c8
 	 * to switch over (default to first)
4728c8
@@ -445,7 +449,6 @@ select_action (struct multipath * mpp, v
4728c8
 			mpp->alias);
4728c8
 		return;
4728c8
 	}
4728c8
-	mpp->force_udev_reload = !pathcount(mpp, PATH_WILD);
4728c8
 	if (cmpp->size != mpp->size) {
4728c8
 		mpp->force_udev_reload = 1;
4728c8
 		mpp->action = ACT_RESIZE;