From: Juri Lelli <juri.lelli@redhat.com>
To: John Stultz <jstultz@google.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
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>,
Suleiman Souhlal <suleiman@google.com>,
K Prateek Nayak <kprateek.nayak@amd.com>,
kernel-team@android.com
Subject: Re: [PATCH] [RFC]: sched/deadline: Avoid double enqueue_pushable_dl_task() warning
Date: Wed, 4 Mar 2026 08:06:53 +0100 [thread overview]
Message-ID: <aafaDVR1BqoTVVJ3@jlelli-thinkpadt14gen4.remote.csb> (raw)
In-Reply-To: <20260303194120.4102982-1-jstultz@google.com>
Hello,
On 03/03/26 19:41, John Stultz wrote:
> In testing with the full Proxy Execution patch stack, I found
> I would occasionally trip over the !RB_EMPTY_NODE() WARN_ON in
> enqueue_pushable_dl_task(), where the task we're adding to the
> pushable list is already enqueued.
>
> This triggers from put_prev_task_dl(), where it seems we go into
> put_prev_task_dl()
> -> update_curr_dl()
> -> update_curr_dl_se() [hitting the dl_runtime_exceeded() case]
> -> enqueue_task_dl()
> -> enqueue_pushable_dl_task()
>
> Adding the task to the pushable the first time.
Ah, so in case the task is boosted (or we fail to start the
replenishment timer).
> Then we back up the call stack to put_prev_task_dl(), which at
> the end again calls enqueue_pushable_dl_task(), trying to add it
> a second time, tripping the warning.
>
> To avoid this, add a dl_task_pushable() helper which we can use
> to replace the RB_EMPTY_NODE checks elsewhere, and then before
> enqueueing in put_prev_task_dl(), we can first check
> dl_task_pushable() to avoid the double enqueue.
Can't we just return early (as we do already in dequeue_pushable
_dl_task()) in enqueue_pushable_dl_task() instead of checking before
calling that function?
Thanks,
Juri
next prev parent reply other threads:[~2026-03-04 7:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 19:41 John Stultz
2026-03-04 7:06 ` Juri Lelli [this message]
2026-03-04 9:51 ` Peter Zijlstra
2026-03-04 13:59 ` Juri Lelli
2026-03-05 2:35 ` John Stultz
2026-03-06 23:45 ` John Stultz
2026-03-07 12:55 ` Peter Zijlstra
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=aafaDVR1BqoTVVJ3@jlelli-thinkpadt14gen4.remote.csb \
--to=juri.lelli@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=jstultz@google.com \
--cc=kernel-team@android.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=suleiman@google.com \
--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®