All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: linux-kernel@vger.kernel.org, vegard.nossum@gmail.com,
	mingo@elte.hu, stable@kernel.org, akpm@linux-foundation.org,
	npiggin@suse.de, penberg@cs.helsinki.fi
Subject: Re: [PATCH] v2 Teach RCU that idle task is not quiscent state at boot
Date: Tue, 24 Feb 2009 06:50:35 -0800	[thread overview]
Message-ID: <20090224145035.GA12157@linux.vnet.ibm.com> (raw)
In-Reply-To: <20090224050854.GD7173@linux.vnet.ibm.com>

On Mon, Feb 23, 2009 at 09:08:54PM -0800, Paul E. McKenney wrote:
> On Tue, Feb 24, 2009 at 03:02:56PM +1100, Nick Piggin wrote:
> > On Tuesday 24 February 2009 07:43:32 Paul E. McKenney wrote:
> > 
> > > @@ -80,6 +81,10 @@ void wakeme_after_rcu(struct rcu_head  *head)
> > >  void synchronize_rcu(void)
> > >  {
> > >  	struct rcu_synchronize rcu;
> > > +
> > > +	if (num_online_cpus() == 1)
> > > +		return;  /* If UP, synchronize_rcu() is a grace period! */
> > > +
> > 
> > Nice patch... May I just suggest a comment to say that this is
> > also a correctness requirement due to the grace period holdoff
> > for early boot?
> 
> Excellent point!  If Ingo reports that this actually fixes the hang that
> he saw, I will add such a comment.
> 
> (And glad you like the patch!)

Gah!!!  I forgot about preemptable RCU, which the previous patch breaks
completely on single-CPU systems.

A fix is in the works.

							Thanx, Paul

  reply	other threads:[~2009-02-24 14:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-23 16:16 [PATCH] Teach RCU that idle task is not quiscent state at boot Paul E. McKenney
2009-02-23 17:13 ` Ingo Molnar
2009-02-23 20:43 ` [PATCH] v2 " Paul E. McKenney
2009-02-24  4:02   ` Nick Piggin
2009-02-24  5:08     ` Paul E. McKenney
2009-02-24 14:50       ` Paul E. McKenney [this message]
2009-02-25  0:29   ` [PATCH] v3 " Paul E. McKenney
2009-02-25  4:12     ` Nick Piggin
2009-02-25  4:43       ` Paul E. McKenney
2009-02-25 14:19     ` [PATCH] v4 " Paul E. McKenney
2009-02-25 16:00       ` Ingo Molnar
2009-02-25 16:26         ` Nick Piggin
2009-02-25 17:12           ` Paul E. McKenney
2009-02-25 17:18             ` Nick Piggin
2009-02-25 17:36               ` Paul E. McKenney
2009-02-25 17:08         ` Paul E. McKenney
2009-02-26  3:09           ` Ingo Molnar
2009-02-25 18:38       ` Vegard Nossum
2009-02-25 19:01         ` Paul E. McKenney
2009-02-26  2:03       ` [PATCH] v5 " Paul E. McKenney
2009-02-26  3:08         ` Ingo Molnar

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=20090224145035.GA12157@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nickpiggin@yahoo.com.au \
    --cc=npiggin@suse.de \
    --cc=penberg@cs.helsinki.fi \
    --cc=stable@kernel.org \
    --cc=vegard.nossum@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.