]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched_ext: Sync error_irq_work before freeing scx_sched
authorTejun Heo <tj@kernel.org>
Thu, 9 Oct 2025 23:56:23 +0000 (13:56 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 13 Oct 2025 18:25:55 +0000 (08:25 -1000)
commitefeeaac9ae9763f9c953e69633c86bc3031e39b5
tree629c016e78edb8ce691147d24b481418a069c2f5
parent54e96258a6930909b690fd7e8889749231ba8085
sched_ext: Sync error_irq_work before freeing scx_sched

By the time scx_sched_free_rcu_work() runs, the scx_sched is no longer
reachable. However, a previously queued error_irq_work may still be pending or
running. Ensure it completes before proceeding with teardown.

Fixes: bff3b5aec1b7 ("sched_ext: Move disable machinery into scx_sched")
Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c