mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Kayra Cizmeci <kayracizmeci@gmail.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>,
	mingo@redhat.com, juri.lelli@redhat.com,
	dietmar.eggemann@arm.com, rostedt@goodmis.org,
	bsegall@google.com, mgorman@suse.de, vschneid@redhat.com,
	kprateek.nayak@amd.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sched/fair: Use task_delayed everywhere in __dequeue_task()
Date: Fri, 27 Nov 2026 10:46:27 +0100	[thread overview]
Message-ID: <20261127094627.GQ49833@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <awhlwJTOLPeNqFW8@scheduler.schedules>

On Thu, Nov 26, 2026 at 08:22:51PM +0300, Kayra Cizmeci wrote:
> On Thu, Nov 26, 2026 at 05:40:36PM +0100, Vincent Guittot wrote:
> > Reuse task_delayed instead of checking flags bit
> > 
> > Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
> > ---
> >  kernel/sched/fair.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> > index 731d78155e65..942140247f76 100644
> > --- a/kernel/sched/fair.c
> > +++ b/kernel/sched/fair.c
> > @@ -8354,7 +8354,7 @@ static bool __dequeue_task(struct rq *rq, struct task_struct *p, int flags)
> >  	update_curr_eevdf(cfs_rq);
> >  	update_entity_lag(cfs_rq, se);
> >  
> > -	if (flags & DEQUEUE_DELAYED) {
> > +	if (task_delayed) {
> >  		WARN_ON_ONCE(!se->sched_delayed);
> >  	} else {
> >  		bool delay = task_sleep;
> > -- 
> > 2.53.0
> > 
> 
> As I see and know, cleanups attend to get lost in sched's traffic.
> I don't like that. So I'll review this :-).

That's why I often sneak them into larger series :-) But yes, my inbox
has gone absolutely nuclear the past year or so, it is very hard to keep
track of things.

> Reviewed-by: Kayra Cizmeci <kayracizmeci@gmail.com>
> 

I've got this one at least. Thanks!


      parent reply	other threads:[~2026-11-27  9:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 16:40 Vincent Guittot
2026-11-26 17:22 ` Kayra Cizmeci
2026-11-27  6:16   ` Li kunyu
2026-11-27  9:46   ` Peter Zijlstra [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=20261127094627.GQ49833@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=juri.lelli@redhat.com \
    --cc=kayracizmeci@gmail.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --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®