Commit 253edcf
sched/fair: Use throttled_csd_list for local unthrottle
When distribute_cfs_runtime() encounters a local cfs_rq, it adds it to a
local list and unthrottles it at the end, when it is done unthrottling
other cfs_rq(s) on cfs_b->throttled_cfs_rq until the bandwidth runs out.
Instead of using a local list, reuse the local CPU's
rq->throttled_csd_list and the __cfsb_csd_unthrottle() path for
unthrottle.
If this is the first cfs_rq to be queued on the "throttled_csd_list", it
prevents the need for a remote CPUs to interrupt this local CPU if they
themselves are performing async unthrottle.
If this is not the first cfs_rq on the list, there is an async unthrottle
operation pending on this local CPU and the unthrottle can be batched
together.
No functional changes intended.
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Benjamin Segall <bsegall@google.com>
Tested-by: Aaron Lu <ziqianlu@bytedance.com>
Link: https://patch.msgid.link/20260602050005.11160-3-kprateek.nayak@amd.com1 parent 1abbecd commit 253edcf
1 file changed
Lines changed: 15 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6991 | 6991 | | |
6992 | 6992 | | |
6993 | 6993 | | |
| 6994 | + | |
6994 | 6995 | | |
6995 | 6996 | | |
6996 | | - | |
6997 | | - | |
| 6997 | + | |
6998 | 6998 | | |
6999 | | - | |
7000 | 6999 | | |
7001 | 7000 | | |
7002 | 7001 | | |
| |||
7047 | 7046 | | |
7048 | 7047 | | |
7049 | 7048 | | |
7050 | | - | |
7051 | | - | |
| 7049 | + | |
| 7050 | + | |
| 7051 | + | |
| 7052 | + | |
7052 | 7053 | | |
7053 | | - | |
7054 | | - | |
| 7054 | + | |
| 7055 | + | |
7055 | 7056 | | |
7056 | 7057 | | |
7057 | | - | |
7058 | | - | |
7059 | | - | |
7060 | | - | |
7061 | | - | |
7062 | | - | |
7063 | | - | |
7064 | | - | |
7065 | | - | |
| 7058 | + | |
| 7059 | + | |
| 7060 | + | |
| 7061 | + | |
| 7062 | + | |
| 7063 | + | |
| 7064 | + | |
7066 | 7065 | | |
7067 | | - | |
7068 | 7066 | | |
7069 | 7067 | | |
7070 | 7068 | | |
| |||
0 commit comments