Commit 498c3f3
committed
Reduce lock contention in cgroup cache rebuild and simplify BPF map update
Walk the cgroup filesystem outside any lock and swap in the fresh cache
under a brief write lock, eliminating the upgrade-to-write-lock pattern
that blocked all readers during the walk.
Extract the inline map lookup/update logic in process_eth() into the
existing update_val() helper to reduce code duplication across hook types.1 parent cb72a11 commit 498c3f3
12 files changed
+13
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 353 | + | |
364 | 354 | | |
365 | 355 | | |
366 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
87 | 81 | | |
88 | | - | |
89 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
90 | 85 | | |
91 | | - | |
| 86 | + | |
92 | 87 | | |
93 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments