Re: [PATCH v2 1/7] sched/fair: Fix zero_vruntime tracking
From: K Prateek Nayak
Date: Tue Mar 31 2026 - 13:25:13 EST
On 3/31/2026 9:44 PM, Peter Zijlstra wrote:
> @@ -925,6 +926,7 @@ void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
> if (last)
> right_vruntime = last->vruntime;
> zero_vruntime = cfs_rq->zero_vruntime;
> + avruntime = avg_vruntime(cfs_rq);
> raw_spin_rq_unlock_irqrestore(rq, flags);
Ah! Didn't notice we dropped the lock as soon as we are done reading the
necessary values. Makes sense why reading the debugfs under heavy load
crashed.
Ran 100 loops of reading the debug file while running stress-ng
+ sched-messaging and I haven't see any crashes yet so feel free to
include:
Tested-by: K Prateek Nayak <kprateek.nayak@xxxxxxx>
>
> SEQ_printf(m, " .%-30s: %Ld.%06ld\n", "left_deadline",
--
Thanks and Regards,
Prateek