mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-28 20:03:05 +00:00
sched_ext: scx_cgroup_exit() may be called without successful scx_cgroup_init()
568894edbe("sched_ext: Add scx_cgroup_enabled to gate cgroup operations and fix scx_tg_online()") assumed that scx_cgroup_exit() is only called after scx_cgroup_init() finished successfully. This isn't true. scx_cgroup_exit() can be called without scx_cgroup_init() being called at all or after scx_cgroup_init() failed in the middle. As init state is tracked per cgroup, scx_cgroup_exit() can be used safely to clean up in all cases. Remove the incorrect WARN_ON_ONCE(). Signed-off-by: Tejun Heo <tj@kernel.org> Fixes:568894edbe("sched_ext: Add scx_cgroup_enabled to gate cgroup operations and fix scx_tg_online()")
This commit is contained in:
parent
cc9877fb76
commit
ec010333ce
1 changed files with 0 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue