From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751699Ab2GPPrH (ORCPT ); Mon, 16 Jul 2012 11:47:07 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:38293 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750843Ab2GPPrE (ORCPT ); Mon, 16 Jul 2012 11:47:04 -0400 Date: Mon, 16 Jul 2012 08:46:58 -0700 From: Greg Kroah-Hartman To: Herton Ronaldo Krzesinski Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Eric Dumazet , "David S. Miller" Subject: Re: [ 08/68] dummy: fix rcu_sched self-detected stalls Message-ID: <20120716154658.GA13055@kroah.com> References: <20120712175057.GA9917@kroah.com> <20120712175035.530652872@linuxfoundation.org> <20120712175036.147190749@linuxfoundation.org> <20120713140909.GA3185@herton-Z68MA-D2H-B3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120713140909.GA3185@herton-Z68MA-D2H-B3> 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 Fri, Jul 13, 2012 at 11:09:10AM -0300, Herton Ronaldo Krzesinski wrote: > On Thu, Jul 12, 2012 at 04:01:42PM -0700, Greg Kroah-Hartman wrote: > > From: Greg KH > > > > 3.0-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > > > From: Eric Dumazet > > > > [ Upstream commit 16b0dc29c1af9df341428f4c49ada4f626258082 ] > > > > Trying to "modprobe dummy numdummies=30000" triggers : > > > > INFO: rcu_sched self-detected stall on CPU { 8} (t=60000 jiffies) > > > > After this splat, RTNL is locked and reboot is needed. > > > > We must call cond_resched() to avoid this, even holding RTNL. > > > > Signed-off-by: Eric Dumazet > > Signed-off-by: David S. Miller > > Signed-off-by: Greg Kroah-Hartman > > --- > > drivers/net/dummy.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > --- a/drivers/net/dummy.c > > +++ b/drivers/net/dummy.c > > @@ -186,8 +186,10 @@ static int __init dummy_init_module(void > > rtnl_lock(); > > err = __rtnl_link_register(&dummy_link_ops); > > > > - for (i = 0; i < numdummies && !err; i++) > > + for (i = 0; i < numdummies && !err; i++) { > > err = dummy_init_one(); > > + cond_resched(); > > This cherry-pick for 3.0 has the same problem as the one that was > proposed to 3.2, build fails on i386/arm: > > linux-stable/drivers/net/dummy.c: In function 'dummy_init_module': > linux-stable/drivers/net/dummy.c:191:3: error: implicit declaration of function 'cond_resched' [-Werror=implicit-function-declaration] > > This will need an include for linux/sched.h as in 3.2 (the same proposed > patch for 3.4 shouldn't be affected). Thanks, I've made that change now. greg k-h