Re: [PATCH 3/5] sched/fair: Call update_curr() before unthrottling the hierarchy

From: K Prateek Nayak

Date: Tue Jun 02 2026 - 02:39:15 EST


On 6/1/2026 4:57 PM, Peter Zijlstra wrote:
> Like this?
>
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -9830,6 +9830,7 @@ static int tg_set_cfs_bandwidth(struct t
> struct rq *rq = cfs_rq->rq;
>
> guard(rq_lock_irq)(rq);
> + update_rq_clock();

Except that needs an rq as an argument ;-)

I've send out a v2 here for convenience:
https://lore.kernel.org/lkml/20260602050005.11160-1-kprateek.nayak@xxxxxxx/

It addresses the comments from Ben, and I've move the update_rq_clock()
just before the unthrottle to avoid doing it unnecessarily in case the
cfs_rq is not throttled yet.

--
Thanks and Regards,
Prateek