From: Ingo Molnar <mingo@elte.hu>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org, vegard.nossum@gmail.com,
stable@kernel.org, akpm@linux-foundation.org, npiggin@suse.de,
penberg@cs.helsinki.fi
Subject: Re: [PATCH] Teach RCU that idle task is not quiscent state at boot
Date: Mon, 23 Feb 2009 18:13:23 +0100 [thread overview]
Message-ID: <20090223171323.GB27072@elte.hu> (raw)
In-Reply-To: <20090223161611.GA9563@linux.vnet.ibm.com>
* Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:
> This patch fixes a bug located by Vegard Nossum with the aid of
> kmemcheck.
>
> The boot CPU runs in the context of its idle thread during boot-up.
> During this time, idle_cpu(0) will always return nonzero, which will
> fool Classic and Hierarchical RCU into deciding that a large chunk of
> the boot-up sequence is a big long quiescent state. This in turn causes
> RCU to prematurely end grace periods during this time.
>
> This patch changes the rcutree.c and rcuclassic.c rcu_check_callbacks()
> function to ignore the idle tasks as a quiescent state until the
> system_state is no longer SYSTEM_BOOTING. After this point, the idle
> task really does represent a quiescent state.
>
> In addition, this patch takes Nick Piggin's suggestion to make the
> system_state global variable be __read_mostly.
>
> Located-by: Vegard Nossum <vegard.nossum@gmail.com>
> Tested-by: Vegard Nossum <vegard.nossum@gmail.com>
> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> ---
>
> init/main.c | 2 +-
> kernel/rcuclassic.c | 4 ++--
> kernel/rcutree.c | 4 ++--
> 3 files changed, 5 insertions(+), 5 deletions(-)
Applied to tip:core/urgent, thanks Paul!
Ingo
next prev parent reply other threads:[~2009-02-23 17:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-23 16:16 Paul E. McKenney
2009-02-23 17:13 ` Ingo Molnar [this message]
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
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=20090223171323.GB27072@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@suse.de \
--cc=paulmck@linux.vnet.ibm.com \
--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 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®