]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Clean up SCX_EXIT_NONE handling in scx_disable_workfn()
authorTejun Heo <tj@kernel.org>
Tue, 29 Apr 2025 18:40:11 +0000 (08:40 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 29 Apr 2025 18:40:11 +0000 (08:40 -1000)
commit9ba7f37e5b39654e657df83c266c24ee7bbc2296
tree1e09ae11c153d871eae2ff82d9d704cbf253d9a6
parentbff3b5aec1b727b620adc7c47085592802390125
sched_ext: Clean up SCX_EXIT_NONE handling in scx_disable_workfn()

With the global states and disable machinery moved into scx_sched,
scx_disable_workfn() can only be scheduled and run for the specific
scheduler instance. This makes it impossible for scx_disable_workfn() to see
SCX_EXIT_NONE. Turn that condition into WARN_ON_ONCE().

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Acked-by: Changwoo Min <changwoo@igalia.com>
kernel/sched/ext.c