]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched: Start blocked_on chain processing in find_proxy_task()
authorPeter Zijlstra <peterz@infradead.org>
Sat, 12 Jul 2025 03:33:49 +0000 (03:33 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 14 Jul 2025 15:16:33 +0000 (17:16 +0200)
commit7de9d4f946383f48ec393b6e9ad0c20e49e174e7
tree7d5af61cdcb15dddf2663782c175ce7d402103ad
parentbe39617e38e0b1939a6014d77ee6f14707d59b1b
sched: Start blocked_on chain processing in find_proxy_task()

Start to flesh out the real find_proxy_task() implementation,
but avoid the migration cases for now, in those cases just
deactivate the donor task and pick again.

To ensure the donor task or other blocked tasks in the chain
aren't migrated away while we're running the proxy, also tweak
the fair class logic to avoid migrating donor or mutex blocked
tasks.

[jstultz: This change was split out from the larger proxy patch]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Connor O'Brien <connoro@google.com>
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://lkml.kernel.org/r/20250712033407.2383110-9-jstultz@google.com
kernel/locking/mutex.h
kernel/sched/core.c
kernel/sched/fair.c