]> git.ipfire.org Git - thirdparty/linux.git/commit
sched: Add assert_balance_callbacks_empty helper
authorJohn Stultz <jstultz@google.com>
Tue, 24 Mar 2026 19:13:22 +0000 (19:13 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 3 Apr 2026 12:23:40 +0000 (14:23 +0200)
commitf9530b3183358bbf945f7c20d4a6e2048061ec50
treee64cc8524acfa468c9bc1bd860041713ba83da70
parent2d7622669836dcbbb449741b4e6c503ffe005c25
sched: Add assert_balance_callbacks_empty helper

With proxy-exec utilizing pick-again logic, we can end up having
balance callbacks set by the preivous pick_next_task() call left
on the list.

So pull the warning out into a helper function, and make sure we
check it when we pick again.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
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-8-jstultz@google.com
kernel/sched/core.c
kernel/sched/sched.h