Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Wilck <mwilck@suse.com> |
| 3 | Date: Wed, 21 Mar 2018 10:34:18 +0100 |
| 4 | Subject: [PATCH] libmultipath: don't reject maps with undefined prio |
| 5 | |
| 6 | libmultipath's prio routines can deal with pp->priority == PRIO_UNDEF |
| 7 | just fine. PRIO_UNDEF is just a very low priority. So there's |
| 8 | no reason to reject setting up a multipath map because paths have |
| 9 | undefined priority. |
| 10 | |
| 11 | Signed-off-by: Martin Wilck <mwilck@suse.com> |
| 12 | Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> |
| 13 | --- |
| 14 | libmultipath/configure.c | 5 ----- |
| 15 | 1 file changed, 5 deletions(-) |
| 16 | |
| 17 | diff --git a/libmultipath/configure.c b/libmultipath/configure.c |
| 18 | index 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 | -- |
| 41 | 2.7.4 |
| 42 | |