Commit be365ce
Peter Zijlstra
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.org1 parent 7918cf3 commit be365ce
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3764 | 3764 | | |
3765 | 3765 | | |
3766 | 3766 | | |
3767 | | - | |
| 3767 | + | |
3768 | 3768 | | |
3769 | 3769 | | |
3770 | 3770 | | |
| |||
6866 | 6866 | | |
6867 | 6867 | | |
6868 | 6868 | | |
6869 | | - | |
6870 | 6869 | | |
6871 | 6870 | | |
6872 | 6871 | | |
6873 | | - | |
| 6872 | + | |
6874 | 6873 | | |
6875 | | - | |
6876 | | - | |
| 6874 | + | |
| 6875 | + | |
| 6876 | + | |
6877 | 6877 | | |
6878 | 6878 | | |
6879 | 6879 | | |
| |||
7147 | 7147 | | |
7148 | 7148 | | |
7149 | 7149 | | |
7150 | | - | |
| 7150 | + | |
7151 | 7151 | | |
7152 | 7152 | | |
7153 | 7153 | | |
| |||
0 commit comments