mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
cgroup: when checking for legacy controllers, ignore any we don't care about
This commit is contained in:
committed by
Lennart Poettering
parent
506bbc8569
commit
a69f1dd9ca
@@ -63,6 +63,10 @@ static int cg_any_controller_used_for_v1(void) {
|
||||
if (streq(enabled, "0"))
|
||||
continue;
|
||||
|
||||
/* Ignore controllers we don't care about. */
|
||||
if (cgroup_controller_from_string(name) < 0)
|
||||
continue;
|
||||
|
||||
/* Since the unified cgroup doesn't use multiple hierarchies, if any controller has a
|
||||
* non-zero hierarchy_id that means it's in use already in a legacy (or hybrid) cgroup v1
|
||||
* hierarchy, and can't be used in a unified cgroup. */
|
||||
|
||||
Reference in New Issue
Block a user