Commit afae800
sched/eevdf: Fix miscalculation in reweight_entity() when se is not curr
reweight_eevdf() only keeps V unchanged inside itself. When se !=
cfs_rq->curr, it would be dequeued from rb tree first. So that V is
changed and the result is wrong. Pass the original V to reweight_eevdf()
to fix this issue.
Fixes: eab03c2 ("sched/eevdf: Fix vruntime adjustment on reweight")
Signed-off-by: Tianchen Ding <dtcccc@linux.alibaba.com>
[peterz: flip if() condition for clarity]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Abel Wu <wuyun.abel@bytedance.com>
Link: https://lkml.kernel.org/r/20240306022133.81008-3-dtcccc@linux.alibaba.com1 parent 11b1b8b commit afae800
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3676 | 3676 | | |
3677 | 3677 | | |
3678 | 3678 | | |
3679 | | - | |
| 3679 | + | |
3680 | 3680 | | |
3681 | 3681 | | |
3682 | 3682 | | |
3683 | | - | |
3684 | 3683 | | |
3685 | 3684 | | |
3686 | 3685 | | |
| |||
3787 | 3786 | | |
3788 | 3787 | | |
3789 | 3788 | | |
| 3789 | + | |
3790 | 3790 | | |
3791 | 3791 | | |
3792 | 3792 | | |
3793 | 3793 | | |
| 3794 | + | |
3794 | 3795 | | |
3795 | 3796 | | |
3796 | 3797 | | |
3797 | 3798 | | |
3798 | 3799 | | |
3799 | 3800 | | |
3800 | | - | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
3801 | 3804 | | |
3802 | 3805 | | |
3803 | 3806 | | |
3804 | 3807 | | |
3805 | 3808 | | |
3806 | | - | |
3807 | | - | |
3808 | 3809 | | |
3809 | 3810 | | |
3810 | 3811 | | |
| |||
0 commit comments