From f2732127973219222cbaf88fab7243738dfd7f72 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sun, 6 Jul 2025 01:24:29 +0200 Subject: [PATCH] core/cgroup: unit_realize_cgroup_now_disable() is NOP for non-slice units --- src/core/cgroup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index bd47671a22..e343a659ad 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);