From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756850Ab2GMJMh (ORCPT ); Fri, 13 Jul 2012 05:12:37 -0400 Received: from mga14.intel.com ([143.182.124.37]:24339 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754455Ab2GMJMd (ORCPT ); Fri, 13 Jul 2012 05:12:33 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="167628842" Date: Fri, 13 Jul 2012 17:12:30 +0800 From: Fengguang Wu To: "Paul E. McKenney" Cc: Josh Triplett , Lai Jiangshan , LKML , Steven Rostedt Subject: Re: rcu_dyntick and suspicious RCU usage Message-ID: <20120713091230.GA20208@localhost> References: <20120709135637.GA26040@localhost> <20120709145724.GA27095@localhost> <20120710044700.GA9462@localhost> <20120711074924.GD3819@linux.vnet.ibm.com> <20120712164308.GA31584@linux.vnet.ibm.com> <20120712165738.GA21630@localhost> <20120712170242.GB31396@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120712170242.GB31396@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2012 at 10:02:42AM -0700, Paul E. McKenney wrote: > On Fri, Jul 13, 2012 at 12:57:38AM +0800, Fengguang Wu wrote: > > On Thu, Jul 12, 2012 at 09:43:08AM -0700, Paul E. McKenney wrote: > > > On Wed, Jul 11, 2012 at 12:49:24AM -0700, Paul E. McKenney wrote: > > > > On Tue, Jul 10, 2012 at 12:47:00PM +0800, Fengguang Wu wrote: > > > > > Hi Paul, > > > > > > > > > > Fortunately this bug is bisectable and the first bad commit is: > > > > > > > > > > commit 9b2e4f1880b789be1f24f9684f7a54b90310b5c0 > > > > > Author: Paul E. McKenney > > > > > Date: Fri Sep 30 12:10:22 2011 -0700 > > > > > > > > > > rcu: Track idleness independent of idle tasks > > > > > > > > OK, there is a problem in TINY_RCU's handling of dyntick-idle: it > > > > traces while in idle. The confusion on my part was that in TREE_RCU, > > > > the nesting and dyntick-idle indication are different, while in > > > > TINY_RCU they are one and the same. > > > > > > > > Does the following patch help? > > > > > > This one failed in my testing. Please see the end for the fixed > > > version, with on small but important change. > > > > It worked, thanks! > > > > Tested-by: Fengguang Wu > > Very good! (And please ignore my resend of the same patch.) > > I will queue this. Will you recommend it for -stable? It impacts 3.3/3.4. I tested it on 3.4 and it works fine. However for 3.3, the patch cannot apply cleanly. Thanks, Fengguang