Commit 2236eb0
committed
cgroup2: Manager.Delete: handle both "threaded" and "domain threaded"
commit 6f5001d added special handling
for threaded cgroup types. A later contribution added detection for
"domain threaded" as known type, but did not update the handling to
detect this type.
From the original PR;
> Reading cgroup.procs seems to return ENOTSUPP when threaded, so check
> the type of the cg when going to delete and read the relevant file.
An alternative could be to check both variants unconditionally, and to
error if either Manager.Threads or Manager.Procs is non-zero.
Signed-off-by: Sebastiaan van Stijn <[email protected]>1 parent 0896ceb commit 2236eb0
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | 475 | | |
480 | 476 | | |
481 | 477 | | |
| |||
485 | 481 | | |
486 | 482 | | |
487 | 483 | | |
488 | | - | |
489 | | - | |
490 | 484 | | |
491 | 485 | | |
492 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
493 | 489 | | |
494 | | - | |
| 490 | + | |
495 | 491 | | |
496 | 492 | | |
497 | 493 | | |
| |||
0 commit comments