diff options
author | Benjamin Marzinski <bmarzins@redhat.com> | 2013-09-05 11:01:40 -0500 |
---|---|---|
committer | Benjamin Marzinski <bmarzins@redhat.com> | 2013-09-05 11:01:40 -0500 |
commit | a538ff74038e9504b3fcf421bc21e7216b94f923 (patch) | |
tree | 336794364413d53fce4ed7f097575bbdd9e3685c /0062-RH-dont-free-vecs.patch | |
parent | aba856f28c21347a5ef6ab0ec2813b860261db1c (diff) | |
download | device-mapper-multipath-a538ff74038e9504b3fcf421bc21e7216b94f923.tar.gz device-mapper-multipath-a538ff74038e9504b3fcf421bc21e7216b94f923.tar.xz device-mapper-multipath-a538ff74038e9504b3fcf421bc21e7216b94f923.zip |
device-mapper-multipath-0.4.9-56
Add 0061-RH-display-find-mpaths.patch
* display the find_multipaths value in show config
Add 0062-RH-dont-free-vecs.patch
* don't free the vecs structure on shutdown. It's more pain than
it's worth.
Diffstat (limited to '0062-RH-dont-free-vecs.patch')
-rw-r--r-- | 0062-RH-dont-free-vecs.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/0062-RH-dont-free-vecs.patch b/0062-RH-dont-free-vecs.patch new file mode 100644 index 0000000..f1c3217 --- /dev/null +++ b/0062-RH-dont-free-vecs.patch @@ -0,0 +1,28 @@ +--- + multipathd/main.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +Index: multipath-tools-130222/multipathd/main.c +=================================================================== +--- multipath-tools-130222.orig/multipathd/main.c ++++ multipath-tools-130222/multipathd/main.c +@@ -1735,8 +1735,9 @@ child (void * param) + vecs->pathvec = NULL; + unlock(vecs->lock); + /* Now all the waitevent threads will start rushing in. */ ++ /* freeing vecs isn't worth the races + while (vecs->lock.depth > 0) { +- sleep (1); /* This is weak. */ ++ sleep (1); + condlog(3, "Have %d wait event checkers threads to de-alloc," + " waiting...", vecs->lock.depth); + } +@@ -1746,7 +1747,7 @@ child (void * param) + vecs->lock.mutex = NULL; + FREE(vecs); + vecs = NULL; +- ++ */ + cleanup_checkers(); + cleanup_prio(); + |