]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Fix stray scx_root usage in task_can_run_on_remote_rq()
authorTejun Heo <tj@kernel.org>
Tue, 23 Sep 2025 19:03:26 +0000 (09:03 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 23 Sep 2025 19:03:26 +0000 (09:03 -1000)
commitf75efc8f4c0d52f6fe53a0acd9629e3ac017fc3e
tree483e0d6d259c30a80972432790b568cf29755684
parentedf005fa274a0c224e550a52726aa7a426384e36
sched_ext: Fix stray scx_root usage in task_can_run_on_remote_rq()

task_can_run_on_remote_rq() takes @sch but it is using scx_root when
incrementing SCX_EV_DISPATCH_LOCAL_DSQ_OFFLINE, which is inconsistent and
gets in the way of implementing multiple scheduler support. Use @sch
instead. As currently scx_root is the only possible scheduler instance, this
doesn't cause any behavior changes.

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