mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kayra Cizmeci <kayracizmeci@gmail.com>
To: Wenwu Hou <hwenwur@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>,
	stable@vger.kernel.org,  Peter Zijlstra <peterz@infradead.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	 Vincent Guittot <vincent.guittot@linaro.org>,
	Dietmar Eggemann <dietmar.eggemann@arm.com>,
	 Steven Rostedt <rostedt@goodmis.org>,
	Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
	 Valentin Schneider <vschneid@redhat.com>,
	K Prateek Nayak <kprateek.nayak@amd.com>,
	 Wei Yang <albin_yang@163.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sched/core: Avoid counting sleep time as run delay after migration
Date: Wed, 25 Nov 2026 15:09:02 +0300	[thread overview]
Message-ID: <awbNyJl7j4z4wZ5H@scheduler.schedules> (raw)
In-Reply-To: <20261125115519.2373653-1-hwenwur@gmail.com>

Hi,

On Wed, Nov 25, 2026 at 07:55:19PM +0800, Wenwu Hou wrote:

[snip..]

> Link: https://gist.github.com/hwenwur/61cf383f8df72d4270ad9918b1d4edc8 [1]
> Fixes: 152e11f6df29 ("sched/fair: Implement delayed dequeue")
> Cc: stable@vger.kernel.org
> Signed-off-by: Wenwu Hou <hwenwur@gmail.com>
> ---
>  kernel/sched/core.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index 515b9d0353ce9..043885c66365e 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -2198,7 +2198,8 @@ void enqueue_task(struct rq *rq, struct task_struct *p, int flags)
>  
>  	psi_enqueue(p, flags);
>  
> -	if (!(flags & ENQUEUE_RESTORE))
> +	/* Delayed tasks remain asleep across migration requeues. */
> +	if (!(flags & ENQUEUE_RESTORE) && !p->se.sched_delayed)
>  		sched_info_enqueue(rq, p);
>  
>  	if (sched_core_enabled(rq))
> -- 
> 2.43.0
> 

Wei Yang is already working at the same issue at here:
https://lore.kernel.org/lkml/20261122121823.2572209-1-albin_yang@163.com/

And here:

https://lore.kernel.org/all/20261024042753.2276779-1-albin_yang@163.com/

So I'd just suggest dropping this patch.
Or atleast working something out. Adding Wei to CC.


Thanks!

Kayra

      reply	other threads:[~2026-11-25 12:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 11:55 Wenwu Hou
2026-11-25 12:09 ` Kayra Cizmeci [this message]

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=awbNyJl7j4z4wZ5H@scheduler.schedules \
    --to=kayracizmeci@gmail.com \
    --cc=albin_yang@163.com \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=hwenwur@gmail.com \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=stable@vger.kernel.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®