diff options
author | Vincent Guittot <[email protected]> | 2020-03-06 14:52:57 +0100 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-03-20 13:06:18 +0100 |
commit | fe61468b2cbc2b7ce5f8d3bf32ae5001d4c434e9 (patch) | |
tree | e4b00d3efde65edd7f57a1f2115012f19830ebac /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 14533a16c46db70b8a75eda8fa633c25ac446d81 (diff) |
sched/fair: Fix enqueue_task_fair warning
When a cfs rq is throttled, the latter and its child are removed from the
leaf list but their nr_running is not changed which includes staying higher
than 1. When a task is enqueued in this throttled branch, the cfs rqs must
be added back in order to ensure correct ordering in the list but this can
only happens if nr_running == 1.
When cfs bandwidth is used, we call unconditionnaly list_add_leaf_cfs_rq()
when enqueuing an entity to make sure that the complete branch will be
added.
Similarly unthrottle_cfs_rq() can stop adding cfs in the list when a parent
is throttled. Iterate the remaining entity to ensure that the complete
branch will be added in the list.
Reported-by: Christian Borntraeger <[email protected]>
Signed-off-by: Vincent Guittot <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Dietmar Eggemann <[email protected]>
Tested-by: Christian Borntraeger <[email protected]>
Tested-by: Dietmar Eggemann <[email protected]>
Cc: [email protected]
Cc: [email protected] #v5.1+
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions