]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched: Clarify wake_up_q()'s write to task->wake_q.next
authorJann Horn <jannh@google.com>
Wed, 29 Jan 2025 19:53:03 +0000 (20:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:31:50 +0000 (14:31 +0200)
commit64577690e49c0adef25f2fa50a8f8aa64d9326a8
tree4e2ce4a0d18c5140d8646534acbad6f7ae5d5516
parent007a849126ef7907761af6a1379400558a72e703
sched: Clarify wake_up_q()'s write to task->wake_q.next

[ Upstream commit bcc6244e13b4d4903511a1ea84368abf925031c0 ]

Clarify that wake_up_q() does an atomic write to task->wake_q.next, after
which a concurrent __wake_q_add() can immediately overwrite
task->wake_q.next again.

Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250129-sched-wakeup-prettier-v1-1-2f51f5f663fa@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/sched/core.c