summaryrefslogtreecommitdiffstats
path: root/0056-UP-alua-prio-fix.patch
blob: 0ac41aba0c5f55e0706055a726f242ab616f1967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
 libmultipath/prioritizers/alua.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: multipath-tools-130222/libmultipath/prioritizers/alua.c
===================================================================
--- multipath-tools-130222.orig/libmultipath/prioritizers/alua.c
+++ multipath-tools-130222/libmultipath/prioritizers/alua.c
@@ -108,7 +108,7 @@ int getprio (struct path * pp, char * ar
 			default:
 				rc = 0;
 		}
-		if (priopath)
+		if (priopath && aas != AAS_OPTIMIZED)
 			rc += 80;
 	} else {
 		switch(-rc) {