diff options
| author | Aboorva Devarajan <[email protected]> | 2024-10-25 18:50:20 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2024-10-29 12:57:51 +0000 |
| commit | 5db91545ef8150c45a526675ef99e8998b648a41 (patch) | |
| tree | 1a1d0ca5b8ecc76b06cee82fbdd5ba51dd7c95c2 /rust/helpers/helpers.c | |
| parent | sched/numa: Fix the potential null pointer dereference in task_numa_work() (diff) | |
| download | kernel-5db91545ef8150c45a526675ef99e8998b648a41.tar.gz kernel-5db91545ef8150c45a526675ef99e8998b648a41.zip | |
sched: Pass correct scheduling policy to __setscheduler_class
Commit 98442f0ccd82 ("sched: Fix delayed_dequeue vs
switched_from_fair()") overlooked that __setscheduler_prio(), now
__setscheduler_class() relies on p->policy for task_should_scx(), and
moved the call before __setscheduler_params() updates it, causing it
to be using the old p->policy value.
Resolve this by changing task_should_scx() to take the policy itself
instead of a task pointer, such that __sched_setscheduler() can pass
in the updated policy.
Fixes: 98442f0ccd82 ("sched: Fix delayed_dequeue vs switched_from_fair()")
Signed-off-by: Aboorva Devarajan <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
