Re: PROBLEM: 3.0-rc kernels unbootable since -rc3

Julie Sullivan
2011-07-12T21:36:01Z

>>
>> OK tested- jms.2011.07.11a fails. The other one's fine (I'm actually
>> running an -rc6 with its patches right now :-)
>
> Just to make sure I understand what patch you are using...  Is it the
> one that I have listed below?  It would be bad form for me to send the
> wrong patch upstream.  ;-)

Yep, that's the one :-)

>
> If this is the correct one, then the upstreamable patch I sent recently
> (https://lkml.org/lkml/2011/7/12/313) should also work.  Famous last
> words...
>

Just compiling that one now....

>                                                        Thanx, Paul
>
> ------------------------------------------------------------------------
>
> rcu: prevent RCU callbacks from being invoked during early boot.
>
> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
>
> diff --git a/kernel/rcutree.c b/kernel/rcutree.c
> index dbe4120..4456395 100644
> --- a/kernel/rcutree.c
> +++ b/kernel/rcutree.c
> @@ -1476,7 +1476,7 @@ static void rcu_process_callbacks(struct softirq_action *unused)
>  */
>  static void invoke_rcu_callbacks(struct rcu_state *rsp, struct rcu_data *rdp)
>  {
> -       if (likely(!rsp->boost)) {
> +       if (likely(rcu_kthreads_spawnable && !rsp->boost)) {
>                rcu_do_batch(rsp, rdp);
>                return;
>        }
>