]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/proxy: Yield the donor task
authorFernand Sieber <sieberf@amazon.com>
Thu, 6 Nov 2025 10:40:10 +0000 (12:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:16:41 +0000 (10:16 +0100)
commit0522222f2ac243ca69e245ab856ce6e047d09781
tree7294d5075c3209b9d9ae48e6f71a6f6afe833f53
parenta607c8f744340ad2c2486d46e96b66df47caffba
sched/proxy: Yield the donor task

commit 127b90315ca07ccad2618db7ba950a63e3b32d22 upstream.

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
Cc: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/sched/deadline.c
kernel/sched/ext.c
kernel/sched/fair.c
kernel/sched/rt.c
kernel/sched/syscalls.c