]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/proxy: Yield the donor task
authorFernand Sieber <sieberf@amazon.com>
Thu, 6 Nov 2025 10:40:10 +0000 (12:40 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 11 Nov 2025 11:33:36 +0000 (12:33 +0100)
commit127b90315ca07ccad2618db7ba950a63e3b32d22
treef9d41816142c10aa80b778855e3b131f18df1056
parent977b9a00541929973fddfbc2f5e932469f7cdc81
sched/proxy: Yield the donor task

When executing a task in proxy context, handle yields as if they were
requested by the donor task. This matches the traditional PI semantics
of yield() as well.

This avoids scenario like proxy task yielding, pick next task selecting the
same previous blocked donor, running the proxy task again, etc.

Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202510211205.1e0f5223-lkp@intel.com
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Fernand Sieber <sieberf@amazon.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251106104022.195157-1-sieberf@amazon.com
kernel/sched/deadline.c
kernel/sched/ext.c
kernel/sched/fair.c
kernel/sched/rt.c
kernel/sched/syscalls.c