]> git.ipfire.org Git - ipfire-3.x.git/blob - multipath-tools/patches/0062-RH-dont-free-vecs.patch
f1c321747e7df7ba560861fa49fe0675779f8f87
[ipfire-3.x.git] / multipath-tools / patches / 0062-RH-dont-free-vecs.patch
1 ---
2 multipathd/main.c | 5 +++--
3 1 file changed, 3 insertions(+), 2 deletions(-)
4
5 Index: 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