Merge pull request #463 from sched-ext/bpfland-update-dsq-vtime

scx_bpfland: always re-align task's vruntime to the global vruntime
This commit is contained in:
Andrea Righi 2024-08-02 22:13:12 +02:00 committed by GitHub
commit 3ad2875240
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -302,10 +302,10 @@ static inline u64 task_vtime(struct task_struct *p)
* performance (less spikey), smoothing the reordering of the vruntime
* scheduling and making the scheduler closer to a FIFO.
*/
if (vtime_before(vtime, vtime_now - slice_ns_lag))
vtime = vtime_now - slice_ns_lag;
if (vtime_before(p->scx.dsq_vtime, vtime_now - slice_ns_lag))
p->scx.dsq_vtime = vtime_now - slice_ns_lag;
return vtime;
return p->scx.dsq_vtime;
}
/*