Commit ec01033
committed
sched_ext: scx_cgroup_exit() may be called without successful scx_cgroup_init()
568894e ("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 <[email protected]>
Fixes: 568894e ("sched_ext: Add scx_cgroup_enabled to gate cgroup operations and fix scx_tg_online()")1 parent cc9877f commit ec01033
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4052 | 4052 | | |
4053 | 4053 | | |
4054 | 4054 | | |
4055 | | - | |
4056 | 4055 | | |
4057 | 4056 | | |
4058 | 4057 | | |
| |||
0 commit comments