]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched: Add blocked_donor link to task for smarter mutex handoffs
authorPeter Zijlstra <peterz@infradead.org>
Tue, 12 May 2026 02:56:17 +0000 (02:56 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 2 Jun 2026 10:26:07 +0000 (12:26 +0200)
commit1628b25248d0742b2ce9c7cfa59cd183e35f37e1
tree6f204daf3a4dcc54e962e2fba54fa8bc18211068
parent4c2a20413d7fb3fc3dd7adf233a4f82bb203fb58
sched: Add blocked_donor link to task for smarter mutex handoffs

Add link to the task this task is proxying for, and use it so
the mutex owner can do an intelligent hand-off of the mutex to
the task that the owner is running on behalf.

[jstultz: This patch was split out from 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>
Link: https://patch.msgid.link/20260512025635.2840817-8-jstultz@google.com
include/linux/sched.h
init/init_task.c
kernel/fork.c
kernel/locking/mutex.c
kernel/sched/core.c