Commit 39f23ce
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: fe61468 (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.org1 parent ad32bb4 commit 39f23ce
1 file changed
+30
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4774 | 4774 | | |
4775 | 4775 | | |
4776 | 4776 | | |
4777 | | - | |
4778 | 4777 | | |
4779 | 4778 | | |
4780 | 4779 | | |
| |||
4798 | 4797 | | |
4799 | 4798 | | |
4800 | 4799 | | |
4801 | | - | |
| 4800 | + | |
| 4801 | + | |
| 4802 | + | |
4802 | 4803 | | |
| 4804 | + | |
| 4805 | + | |
| 4806 | + | |
| 4807 | + | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
4803 | 4813 | | |
4804 | | - | |
4805 | | - | |
4806 | | - | |
4807 | | - | |
4808 | | - | |
4809 | | - | |
| 4814 | + | |
| 4815 | + | |
| 4816 | + | |
4810 | 4817 | | |
4811 | 4818 | | |
4812 | 4819 | | |
4813 | 4820 | | |
| 4821 | + | |
| 4822 | + | |
4814 | 4823 | | |
4815 | | - | |
| 4824 | + | |
| 4825 | + | |
| 4826 | + | |
| 4827 | + | |
| 4828 | + | |
| 4829 | + | |
| 4830 | + | |
| 4831 | + | |
4816 | 4832 | | |
4817 | 4833 | | |
4818 | | - | |
4819 | | - | |
| 4834 | + | |
| 4835 | + | |
4820 | 4836 | | |
| 4837 | + | |
4821 | 4838 | | |
4822 | 4839 | | |
4823 | 4840 | | |
| |||
4826 | 4843 | | |
4827 | 4844 | | |
4828 | 4845 | | |
4829 | | - | |
| 4846 | + | |
| 4847 | + | |
4830 | 4848 | | |
4831 | 4849 | | |
4832 | 4850 | | |
| |||
0 commit comments