]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched: Fix modifying donor->blocked on without proper locking
authorJohn Stultz <jstultz@google.com>
Tue, 24 Mar 2026 19:13:20 +0000 (19:13 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 3 Apr 2026 12:23:39 +0000 (14:23 +0200)
commit56f4b24267a643b0b9ab73f09feaaabfee5a37ae
tree1c13c7cd7be26496fdbf028de09b49c47585647e
parentfa4a1ff8ab235a308d8c983827657a69649185fd
sched: Fix modifying donor->blocked on without proper locking

Introduce an action enum in find_proxy_task() which allows
us to handle work needed to be done outside the mutex.wait_lock
and task.blocked_lock guard scopes.

This ensures proper locking when we clear the donor's blocked_on
pointer in proxy_deactivate(), and the switch statement will be
useful as we add more cases to handle later in this series.

Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://patch.msgid.link/20260324191337.1841376-6-jstultz@google.com
kernel/sched/core.c