2 libmultipath/configure.c | 16 +++++++++++++++-
3 1 file changed, 15 insertions(+), 1 deletion(-)
5 Index: multipath-tools/libmultipath/configure.c
6 ===================================================================
7 --- multipath-tools.orig/libmultipath/configure.c
8 +++ multipath-tools/libmultipath/configure.c
9 @@ -284,6 +284,7 @@ lock_multipath (struct multipath * mpp,
10 struct pathgroup * pgp;
17 @@ -294,12 +295,25 @@ lock_multipath (struct multipath * mpp,
18 vector_foreach_slot(pgp->paths, pp, j) {
19 if (lock && flock(pp->fd, LOCK_EX | LOCK_NB) &&
24 flock(pp->fd, LOCK_UN);
29 + vector_foreach_slot (mpp->pg, pgp, x) {
34 + vector_foreach_slot(pgp->paths, pp, y) {
35 + if (x == i && y > j)
37 + flock(pp->fd, LOCK_UN);