Re: Re: [PATCH 1/2] sched/eevdf: Always update V if se->on_rq when reweighting

From: Abel Wu
Date: Mon Mar 04 2024 - 22:16:35 EST


On 3/5/24 10:13 AM, Tianchen Ding Wrote:
On 2024/3/4 20:06, Abel Wu wrote:
On 3/4/24 11:00 AM, Tianchen Ding Wrote:
reweight_eevdf() needs the latest V to do accurate calculation for new
ve and vd. So update V unconditionally when se is runnable.

As this should come along with commit eab03c23c2a1, I think it would
be better add a Fixes tag?


I'm not sure. In fact avg_vruntime_sub() in reweight_entity() was first introduced by af4cf40470c2, and at that time the algorithm about reweight was not completed...


It is because before commit eab03c23c2a1, reweight didn't rely on V.