mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 00:56:20 +01:00
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>
This commit is contained in:
parent
edf005fa27
commit
f75efc8f4c
1 changed files with 1 additions and 2 deletions
|
|
@ -1622,8 +1622,7 @@ static bool task_can_run_on_remote_rq(struct scx_sched *sch,
|
|||
|
||||
if (!scx_rq_online(rq)) {
|
||||
if (enforce)
|
||||
__scx_add_event(scx_root,
|
||||
SCX_EV_DISPATCH_LOCAL_DSQ_OFFLINE, 1);
|
||||
__scx_add_event(sch, SCX_EV_DISPATCH_LOCAL_DSQ_OFFLINE, 1);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue