Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cgroup: init_tasks shouldn't be linked to the root cgroup
5153faa ("cgroup: remove cgroup_enable_task_cg_lists() optimization") removed lazy initialization of css_sets so that new tasks are always lniked to its css_set. In the process, it incorrectly ended up adding init_tasks to root css_set. They show up as PID 0's in root's cgroup.procs triggering warnings in systemd and generally confusing people. Fix it by skip css_set linking for init_tasks. Signed-off-by: Tejun Heo <[email protected]> Reported-by: https://github.com/joanbm Link: systemd/systemd#14682 Fixes: 5153faa ("cgroup: remove cgroup_enable_task_cg_lists() optimization") Cc: [email protected] # v5.5+
- Loading branch information