From: Mike Yuan Date: Sat, 5 Jul 2025 23:24:29 +0000 (+0200) Subject: core/cgroup: unit_realize_cgroup_now_disable() is NOP for non-slice units X-Git-Tag: v258-rc1~147^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2732127973219222cbaf88fab7243738dfd7f72;p=thirdparty%2Fsystemd.git core/cgroup: unit_realize_cgroup_now_disable() is NOP for non-slice units --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index bd47671a22d..e343a659ade 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -2473,8 +2473,7 @@ static int unit_realize_cgroup_now_disable(Unit *u, ManagerState state) { continue; /* We must disable those below us first in order to release the controller. */ - if (m->type == UNIT_SLICE) - (void) unit_realize_cgroup_now_disable(m, state); + (void) unit_realize_cgroup_now_disable(m, state); target_mask = unit_get_target_mask(m); enable_mask = unit_get_enable_mask(m);