diff options
| author | Vasily Gorbik <gor@linux.ibm.com> | 2026-08-07 03:52:08 +0000 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-09-02 09:37:20 +0200 |
| commit | 3dd95f077371f5def65a91c4bb13bd574a62bc3a (patch) | |
| tree | ba19af19a538bf1a17849d2f3405adb0170d7e18 /scripts/Makefile.thinlto | |
| parent | f0d243a96f2684ad771d678767d17972cf840bd7 (diff) | |
| download | linux-next-3dd95f077371f5def65a91c4bb13bd574a62bc3a.tar.gz linux-next-3dd95f077371f5def65a91c4bb13bd574a62bc3a.zip | |
sched/core: Don't steal a proxy-exec donor
try_steal_cookie() avoids stealing src->core_pick and src->curr before
moving a task with the same cookie via move_queued_task_locked().
With proxy-exec, src->donor is the current scheduling context and may
differ from src->curr. Stealing it migrates a task that the source rq
still treats as current, leaving src's scheduler state for that task
stale. For CFS this means cfs_rq->curr points at the stolen entity,
and the next pick on the source rq hits the WARN_ON_ONCE in
put_prev_entity().
Commit 7de9d4f94638 ("sched: Start blocked_on chain processing in
find_proxy_task()") tweaked the fair class logic so that the donor task
isn't migrated away while we're running the proxy. Do it similarly for
try_steal_cookie() and skip src->donor as well.
Fixes: 7de9d4f94638 ("sched: Start blocked_on chain processing in find_proxy_task()")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260807035232.1881495-3-jstultz@google.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
