hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IDA3VP ----------------------------------------- In domain mode: # acts only as a parent, cannot host tasks /sys/fs/cgroup/parent_cg ├─ cgroup.subtree_control = +xcu ├─ child_cg_a/ │ └─ cgroup.procs ├─ child_cg_b/ │ └─ cgroup.procs └─ cgroup.procs (Forbidden) Once xcu is enabled, the parent cgroup is not allowed to attach tasks directly and can only be used as a container for child cgroups. In thread mode: /sys/fs/cgroup/parent_cg ├─ cgroup.procs # tasks can be attached here directly └─ cgroup.subtree_control = +xcu After switching to thread mode, the parent cgroup can both host tasks directly and enable xcu for its subtree in the meantime. Fixes: 43bbefc53356 ("xsched: Add XCU control group implementation and its backend in xsched CFS") Signed-off-by: Zicheng Qu <quzicheng@huawei.com> --- kernel/xsched/cgroup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/xsched/cgroup.c b/kernel/xsched/cgroup.c index ea495af71a22..ca04c493faa0 100644 --- a/kernel/xsched/cgroup.c +++ b/kernel/xsched/cgroup.c @@ -755,4 +755,5 @@ struct cgroup_subsys xcu_cgrp_subsys = { .dfl_cftypes = xcu_cg_files, .legacy_cftypes = xcu_cg_files, .early_init = false, + .threaded = true }; -- 2.34.1