]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched: Be more strict about p->is_blocked
authorPeter Zijlstra <peterz@infradead.org>
Tue, 26 May 2026 09:32:34 +0000 (11:32 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 2 Jun 2026 10:26:08 +0000 (12:26 +0200)
commit708024b575b4ea58c5956e7c09f2d2f48facd478
treea1449552f56f076f79e27d2940b67a6154f329ca
parentabc40cca0efdf5ba28b7bc37f1db445a8cc840bd
sched: Be more strict about p->is_blocked

Upon entry to try_to_block_task(), p->is_blocked should be false. After all,
the prior wakeup would have made it so per ttwu_do_wakeup().

Ensure this is the case, rather than clearing it in the path that doesn't set
it.

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