From: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
To: Paul McKenney <Paul.McKenney@us.ibm.com>
Cc: Mathieu Desnoyers <compudj@krystal.dyndns.org>,
LKML <linux-kernel@vger.kernel.org>,
Pekka Enberg <penberg@cs.helsinki.fi>
Subject: Re: Using markers w/ preemptible RCU in early code
Date: Sun, 11 May 2008 03:56:44 +0300 [thread overview]
Message-ID: <20080511035644.3613a9a2@linux360.ro> (raw)
In-Reply-To: <OFFCD1EB75.A69A5A3C-ON88257445.007BA01C-88257446.0002C7EF@us.ibm.com>
On Sat, 10 May 2008 17:30:23 -0700
Paul McKenney <Paul.McKenney@us.ibm.com> wrote:
> There might be an easy and harmless fix for early-boot use of
> synchronize_sched() -- I will look into this.
>
> As noted above, call_rcu() is not a problem.
>
> The rcu_barrier*() primitives must never be invoked at early boot
> time. These primitives absolutely must block until all of the
> corresponding flavor of callback has been invoked (and completed),
> but it is not possible to block during early boot. Perhaps they
> should do a WARN_ON() or BUG_ON() in this case?
>
> But why are you calling rcu_barrier() during early boot in the first
> place?
Hi,
Mathieu's code does not call rcu_barrier() explicitely during early
boot. It just happens that I need to use his code (i.e. markers) at that
moment.
My understanding is that we could skip any synchronization primitives
during early code, since there is no SMP and no preemption (and no IRQs
popping around, maybe?). RCU stuff still needs to get registered for
later on, though.
I guess we should write a marker_probe_register() variant for early
code, with no rcu_barrier() and no synchronize_sched() around.
Mathieu, does this sound okay?
(Paul, I removed your alias from the Cc list, so you don't get duplicates.)
Thanks for your input,
Eduard
prev parent reply other threads:[~2008-05-11 0:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-09 22:13 Using markers w/ preemptible RCU in early code Eduard - Gabriel Munteanu
2008-05-09 22:38 ` Mathieu Desnoyers
[not found] ` <OFFCD1EB75.A69A5A3C-ON88257445.007BA01C-88257446.0002C7EF@us.ibm.com>
2008-05-11 0:56 ` Eduard - Gabriel Munteanu [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=20080511035644.3613a9a2@linux360.ro \
--to=eduard.munteanu@linux360.ro \
--cc=Paul.McKenney@us.ibm.com \
--cc=compudj@krystal.dyndns.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
/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