]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: When calling ops.dispatch() @prev must be on the same scx_sched
authorTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:03 +0000 (07:58 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:03 +0000 (07:58 -1000)
commitd94d09a23340b343ffc6ad935f4a7fa90516684a
tree532795f8ddd84b422fe58ecbdb99fa3d2e8aa0cf
parent39d0b2c43776fc84a27b2fc37cebe89e442aafd8
sched_ext: When calling ops.dispatch() @prev must be on the same scx_sched

The @prev parameter passed into ops.dispatch() is expected to be on the
same sched. Passing in @prev which isn't on the sched can spuriously
trigger failures that can kill the scheduler. Pass in @prev iff it's on
the same sched.

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