[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1370283591.26799.95.camel@gandalf.local.home>
Date: Mon, 03 Jun 2013 14:19:51 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: paulmck@...ux.vnet.ibm.com
Cc: Frederic Weisbecker <fweisbec@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFC][PATCH] rcu: Hotplug and PROVE_RCU_DELAY not playing well
together
On Sun, 2013-06-02 at 07:18 -0700, Paul E. McKenney wrote:
> ------------------------------------------------------------------------
>
> diff --git a/kernel/rcutree.c b/kernel/rcutree.c
> index d12470e..9a08bdc 100644
> --- a/kernel/rcutree.c
> +++ b/kernel/rcutree.c
> @@ -1320,9 +1320,9 @@ static int rcu_gp_init(struct rcu_state *rsp)
> rnp->grphi, rnp->qsmask);
> raw_spin_unlock_irq(&rnp->lock);
> #ifdef CONFIG_PROVE_RCU_DELAY
> - if ((prandom_u32() % (rcu_num_nodes * 8)) == 0 &&
> + if ((prandom_u32() % (rcu_num_nodes + 1)) == 0 &&
> system_state == SYSTEM_RUNNING)
> - schedule_timeout_uninterruptible(2);
> + udelay(200);
> #endif /* #ifdef CONFIG_PROVE_RCU_DELAY */
> cond_resched();
> }
I ran this for a bit. Where it usually crashes in less than a minute,
this ran for over 10 minutes without issue.
Tested-by: Steven Rostedt <rostedt@...dmis.org>
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists