Commit cad71a0
committed
libctr: Reset the inherited cpu affinity
Old kernels do that automatically, but new kernels remember
the affinity that was set before the cgroup move due to
https://lore.kernel.org/lkml/[email protected]
This is undesirable for containers, because they inherit
the systemd affinity when the should really move to the container
space cpus.
Signed-off-by: Martin Sivak <[email protected]>
Signed-off-by: Peter Hunt <[email protected]>1 parent 1614cab commit cad71a0
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
147 | 156 | | |
148 | 157 | | |
149 | 158 | | |
| |||
0 commit comments