From: Peter Zijlstra <peterz@infradead.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] sched/rt: Document why has_pushable_tasks() isn't called with a runqueue lock
Date: Wed, 1 Mar 2017 09:37:01 +0100 [thread overview]
Message-ID: <20170301083701.GX6515@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <20170228164856.3d2e81bd@gandalf.local.home>
On Tue, Feb 28, 2017 at 04:48:56PM -0500, Steven Rostedt wrote:
> + /*
> + * Normally, has_pushable_tasks() would be performed within the
> + * runqueue lock being held. But if it was not set when entering
"not set" what? I'm having trouble parsing this.
> + * this hard interrupt handler function, then to have it set would
> + * require a wake up. A wake up of an RT task will either cause a
> + * schedule if the woken task is higher priority than the running
> + * task, or it would try to do a push from the CPU doing the wake
> + * up. Grabbing the runqueue lock in such a case would more likely
> + * just cause unnecessary contention.
> + */
> if (has_pushable_tasks(rq)) {
> raw_spin_lock(&rq->lock);
> push_rt_task(rq);
next prev parent reply other threads:[~2017-03-01 9:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 21:48 Steven Rostedt
2017-03-01 8:37 ` Peter Zijlstra [this message]
2017-03-02 20:38 ` Steven Rostedt
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=20170301083701.GX6515@twins.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=rostedt@goodmis.org \
/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
Powered by JetHome