]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: Add root slice to cgroup realization queue
authorMichal Koutný <mkoutny@suse.com>
Fri, 1 May 2020 12:00:42 +0000 (14:00 +0200)
committerMichal Koutný <mkoutny@suse.com>
Tue, 28 Jul 2020 13:49:24 +0000 (15:49 +0200)
commit30ad3ca0865ba18d3b88da1558cc4ddfeb9701b5
tree1d805313e8f5ee67d5e0964dab41ab853955af74
parenta479c21ed2fda095a2e2f4b52de75487c76d332c
cgroup: Add root slice to cgroup realization queue

When we're disabling controller on a direct child of root cgroup, we
forgot to add root slice into cgroup realization queue, which prevented
proper disabling of the controller (on unified hierarchy).

The mechanism relying on "bounce from bottom and propagate up" in
unit_create_cgroup doesn't work on unified hierarchy (leaves needn't be
enabled). Drop it as we rely on the ancestors to be queued -- that's now
intentional but was artifact of combining the two patches:

cb5e3bc37d ("cgroup: Don't explicitly check for member in UNIT_BEFORE") v240~78
65f6b6bdcb ("core: fix re-realization of cgroup siblings") v245-rc1~153^2

Fixes: #14917
src/core/cgroup.c