blob: 2dda2edae5e2aef894511160f9264f79e6af4ace [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Martin Wilck <mwilck@suse.com>
3Date: Wed, 21 Mar 2018 10:34:18 +0100
4Subject: [PATCH] libmultipath: don't reject maps with undefined prio
5
6libmultipath's prio routines can deal with pp->priority == PRIO_UNDEF
7just fine. PRIO_UNDEF is just a very low priority. So there's
8no reason to reject setting up a multipath map because paths have
9undefined priority.
10
11Signed-off-by: Martin Wilck <mwilck@suse.com>
12Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
13---
14 libmultipath/configure.c | 5 -----
15 1 file changed, 5 deletions(-)
16
17diff --git a/libmultipath/configure.c b/libmultipath/configure.c
18index 5796683..5c54f9b 100644
19--- a/libmultipath/configure.c
20+++ b/libmultipath/configure.c
21@@ -1063,9 +1063,6 @@ int coalesce_paths (struct vectors * vecs, vector newmp, char * refwwid,
22 continue;
23 }
24
25- if (pp1->priority == PRIO_UNDEF)
26- mpp->action = ACT_REJECT;
27-
28 if (!mpp->paths) {
29 condlog(0, "%s: skip coalesce (no paths)", mpp->alias);
30 remove_map(mpp, vecs, 0);
31@@ -1091,8 +1088,6 @@ int coalesce_paths (struct vectors * vecs, vector newmp, char * refwwid,
32 mpp->size);
33 mpp->action = ACT_REJECT;
34 }
35- if (pp2->priority == PRIO_UNDEF)
36- mpp->action = ACT_REJECT;
37 }
38 verify_paths(mpp, vecs);
39
40--
412.7.4
42