]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - multipath-tools/patches/0062-RH-dont-free-vecs.patch
multipath-tools: Update to snapshot from 2013-02-22
[people/pmueller/ipfire-3.x.git] / multipath-tools / patches / 0062-RH-dont-free-vecs.patch
CommitLineData
289c5516
MT
1---
2 multipathd/main.c | 5 +++--
3 1 file changed, 3 insertions(+), 2 deletions(-)
4
5Index: multipath-tools-130222/multipathd/main.c
6===================================================================
7--- multipath-tools-130222.orig/multipathd/main.c
8+++ multipath-tools-130222/multipathd/main.c
9@@ -1735,8 +1735,9 @@ child (void * param)
10 vecs->pathvec = NULL;
11 unlock(vecs->lock);
12 /* Now all the waitevent threads will start rushing in. */
13+ /* freeing vecs isn't worth the races
14 while (vecs->lock.depth > 0) {
15- sleep (1); /* This is weak. */
16+ sleep (1);
17 condlog(3, "Have %d wait event checkers threads to de-alloc,"
18 " waiting...", vecs->lock.depth);
19 }
20@@ -1746,7 +1747,7 @@ child (void * param)
21 vecs->lock.mutex = NULL;
22 FREE(vecs);
23 vecs = NULL;
24-
25+ */
26 cleanup_checkers();
27 cleanup_prio();
28