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

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