]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/proxy: Switch proxy to use p->is_blocked
authorPeter Zijlstra <peterz@infradead.org>
Tue, 26 May 2026 09:42:29 +0000 (11:42 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 2 Jun 2026 10:26:09 +0000 (12:26 +0200)
commitbe365ce2bc20b8970bed350f82c3b760256b6945
treea60f26b42bcc44077453df9f96d77b8efee71ff1
parent7918cf3693614c9f96bc9e43daff6fc72c01b81a
sched/proxy: Switch proxy to use p->is_blocked

Rather than gate the proxy paths with p->blocked_on, use p->is_blocked.

This opens up the state: '->is_blocked && !->blocked_on' for future use.

Notably, only proxy and delayed tasks can be ->on_rq && ->is_blocked, and it is
guaranteed that sched_class::pick_task() will never return a delayed task.
Therefore any task returned from pick_next_task() that has ->is_blocked set,
must be a proxy task.

Suggested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260526113322.477954312%40infradead.org
kernel/sched/core.c