Commit 2734f2a
eduards
Better NetNS parallel access
I think GO is doing something fuzzy when lockOSthread is called,
and the goroutine sleeps. This should avoid a goroutine to lock the thead
and sleep, forcing the routine to always unlock the thread prior going
to sleep, allowing other routines to reuse the thread.
Tested it with 1-shot 90 container onboard, no issues seen.
Signed-off-by: eduards <eduards@plumgrid.com>
Conflicts:
plugin/driver/driver.go
Signed-off-by: eduards <eduards@plumgrid.com>1 parent 926d2f3 commit 2734f2a
2 files changed
Lines changed: 18 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
355 | | - | |
| 356 | + | |
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
369 | 372 | | |
370 | 373 | | |
371 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
39 | 36 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
56 | 40 | | |
57 | 41 | | |
58 | 42 | | |
| |||
70 | 54 | | |
71 | 55 | | |
72 | 56 | | |
73 | | - | |
74 | | - | |
75 | 57 | | |
76 | 58 | | |
77 | 59 | | |
| |||
83 | 65 | | |
84 | 66 | | |
85 | 67 | | |
86 | | - | |
87 | 68 | | |
88 | 69 | | |
89 | 70 | | |
| |||
105 | 86 | | |
106 | 87 | | |
107 | 88 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 89 | + | |
| 90 | + | |
111 | 91 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
117 | 95 | | |
118 | 96 | | |
119 | | - | |
120 | 97 | | |
121 | 98 | | |
122 | 99 | | |
| |||
0 commit comments