Repository navigation
Commit 424b9d9
committed
fs2: reset cgroup.freeze to thawed when freezing fails
When freezing a cgroup v2 fails after the freeze was requested (for
example the freeze times out, or the confirmed state does not match),
setFreezer returned the error but left cgroup.freeze set to "1", leaving
the cgroup in a half-frozen state. Reset it back to "0" (thawed) on the
freeze error path via a best-effort deferred write, mirroring the cgroup
v1 behaviour from runc#2774.
Fixes opencontainers/runc#5325
Signed-off-by: Aman Raj <aman.yug@gmail.com>1 parent bada14e commit 424b9d9
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
41 | 52 | | |
42 | 53 | | |
43 | 54 | | |
| |||
0 commit comments