]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/proxy: Optimize try_to_wake_up()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 26 May 2026 09:28:46 +0000 (11:28 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 2 Jun 2026 10:26:08 +0000 (12:26 +0200)
commitabc40cca0efdf5ba28b7bc37f1db445a8cc840bd
tree962dd41aa838069a6fdbc99fc8ec6181ed94fe78
parent1628b25248d0742b2ce9c7cfa59cd183e35f37e1
sched/proxy: Optimize try_to_wake_up()

The reason for the clause in try_to_wake_up() is, per its comment, that
find_proxy_task()'s proxy_deactivate() is not always called with a cleared
p->blocked_on.

However, that seems silly and easily cured. Make sure to always call
proxy_deactivate() with a cleared p->blocked_on such that we might remove this
clause from the common wake-up path.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: John Stultz <jstultz@google.com>
Link: https://patch.msgid.link/20260526113322.244729903%40infradead.org
kernel/sched/core.c