mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: K Prateek Nayak <kprateek.nayak@amd.com>
To: Vincent Guittot <vincent.guittot@linaro.org>, <mingo@redhat.com>,
	<peterz@infradead.org>, <juri.lelli@redhat.com>,
	<dietmar.eggemann@arm.com>, <rostedt@goodmis.org>,
	<bsegall@google.com>, <mgorman@suse.de>, <vschneid@redhat.com>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sched/eevdf: Fix augmented max_slice
Date: Tue, 8 Sep 2026 08:26:08 +0530	[thread overview]
Message-ID: <a6fe8f72-256a-4374-a1d4-daaa70ed6882@amd.com> (raw)
In-Reply-To: <20260907123855.1297976-1-vincent.guittot@linaro.org>

Hello Vincent,

On 9/7/2026 6:08 PM, Vincent Guittot wrote:
> Similarly to se->min_slice, init se->max_slice with se->slice before
> enqueueing the entity so the augmented callback computes it correctly
> at parent level.
> 
> Fixes: 6e3c0a4e1ad1 ("sched/fair: Fix lag clamp")
> Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>

Feel free to include:

Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>

> ---
>  kernel/sched/fair.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index b8bd308c2d5b..5d819918e870 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -1073,6 +1073,8 @@ static void __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
>  	sum_w_vruntime_add(cfs_rq, se);
>  	se->min_vruntime = se->vruntime;
>  	se->min_slice = se->slice;
> +	se->max_slice = se->slice;
> +
>  	rb_add_augmented_cached(&se->run_node, &cfs_rq->tasks_timeline,
>  				__entity_less, &min_vruntime_cb);
>  }

-- 
Thanks and Regards,
Prateek


  reply	other threads:[~2026-09-08  2:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07 12:38 Vincent Guittot
2026-09-08  2:56 ` K Prateek Nayak [this message]
2026-09-10  9:02 ` [tip: sched/urgent] " tip-bot2 for Vincent Guittot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a6fe8f72-256a-4374-a1d4-daaa70ed6882@amd.com \
    --to=kprateek.nayak@amd.com \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=juri.lelli@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®