[dm-devel] [PATCH 09/14] libmultipath: select ALUA prioritizer for RDAC arrays only
Martin Wilck
mwilck at suse.com
Fri Jan 12 22:07:38 UTC 2018
Since commit 7e2f46d3, multipathd with "detect_prio" setting (=default)
chooses ALUA prioritizer rather than sysfs prioritizer for arrays with
implicit TPGS. But the intention of that patch was to choose ALUA for
NetApp E-Series (RDAC) storage arrays *only*, not for every array
with implicit TPGS.
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
libmultipath/propsel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c
index d08954ac8464..4dba4c50beb9 100644
--- a/libmultipath/propsel.c
+++ b/libmultipath/propsel.c
@@ -497,7 +497,7 @@ detect_prio(struct config *conf, struct path * pp)
if (pp->tpgs <= 0)
return;
- if (pp->tpgs == 2 && !check_rdac(pp)) {
+ if (pp->tpgs == 2 || !check_rdac(pp)) {
if (sysfs_get_asymmetric_access_state(pp, buff, 512) >= 0)
default_prio = PRIO_SYSFS;
}
--
2.15.1
More information about the dm-devel
mailing list