]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Fix unthrottle_cfs_rq() for leaf_cfs_rq list
authorVincent Guittot <vincent.guittot@linaro.org>
Wed, 13 May 2020 13:55:28 +0000 (15:55 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 May 2020 18:34:10 +0000 (20:34 +0200)
commit24999f2698c6e0e7693f15bd35d6140c34101212
tree1a25ddc3af8fa07845312c84be06e3a96e2b4755
parent9f7cbb5893bd4c71a3725400d024857e529ff611
sched/fair: Fix unthrottle_cfs_rq() for leaf_cfs_rq list

Although not exactly identical, unthrottle_cfs_rq() and enqueue_task_fair()
are quite close and follow the same sequence for enqueuing an entity in the
cfs hierarchy. Modify unthrottle_cfs_rq() to use the same pattern as
enqueue_task_fair(). This fixes a problem already faced with the latter and
add an optimization in the last for_each_sched_entity loop.

Fixes: 68e0720e492 (sched/fair: Fix enqueue_task_fair warning)
Reported-by Tao Zhou <zohooouoto@zoho.com.cn>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Phil Auld <pauld@redhat.com>
Reviewed-by: Ben Segall <bsegall@google.com>
Link: https://lkml.kernel.org/r/20200513135528.4742-1-vincent.guittot@linaro.org
kernel/sched/fair.c