mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gabriele Monaco <gmonaco@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: juri.lelli@redhat.com, Ingo Molnar <mingo@redhat.com>,
	 linux-kernel@vger.kernel.org, williams@redhat.com
Subject: Re: [PATCH] sched/deadline: Fix server stopping with runnable tasks
Date: Tue, 13 Jan 2026 10:42:02 +0100	[thread overview]
Message-ID: <9366bb54fa7529e79608b56a394d375789d28aa5.camel@redhat.com> (raw)
In-Reply-To: <20260113093706.GT830755@noisy.programming.kicks-ass.net>

On Tue, 2026-01-13 at 10:37 +0100, Peter Zijlstra wrote:
> >  static void update_curr_dl_se(struct rq *rq, struct sched_dl_entity *dl_se,
> > s64 delta_exec)
> >  {
> > -	bool idle = rq->curr == rq->idle;
> > +	bool idle = rq->curr == rq->idle && !rq->nr_running && !rq-
> > >ttwu_pending;
> 
> This is idle_cpu(), perhaps we can lift that thing into sched.h or so.
> 

Yeah, that's what I meant by quick and dirty.. I have idle_cpu() on the model
side (and have them matching simplifies a lot of things).

I just wasn't sure if we wanted a function call in there. But we can probably do
something nicer without it too.

Thanks,
Gabriele


  reply	other threads:[~2026-01-13  9:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-12  9:02 sched/deadline: Server stops while fair tasks are still runnable Gabriele Monaco
2026-01-12 14:45 ` Juri Lelli
2026-01-13  8:52   ` [PATCH] sched/deadline: Fix server stopping with runnable tasks Gabriele Monaco
2026-01-13  9:37     ` Peter Zijlstra
2026-01-13  9:42       ` Gabriele Monaco [this message]
2026-01-13  9:48         ` Peter Zijlstra
2026-01-13  9:50         ` Juri Lelli
2026-01-13 10:43     ` [tip: sched/urgent] " tip-bot2 for Gabriele Monaco

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=9366bb54fa7529e79608b56a394d375789d28aa5.camel@redhat.com \
    --to=gmonaco@redhat.com \
    --cc=juri.lelli@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=williams@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®