Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754185AbZCZAEU (ORCPT ); Wed, 25 Mar 2009 20:04:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752990AbZCZAEF (ORCPT ); Wed, 25 Mar 2009 20:04:05 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:45574 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752496AbZCZAEE (ORCPT ); Wed, 25 Mar 2009 20:04:04 -0400 Date: Wed, 25 Mar 2009 17:03:52 -0700 (PDT) Message-Id: <20090325.170352.95221419.davem@davemloft.net> To: jarkao2@gmail.com Cc: herbert@gondor.apana.org.au, mingo@elte.hu, r.schwebel@pengutronix.de, torvalds@linux-foundation.org, blaschka@linux.vnet.ibm.com, tglx@linutronix.de, a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: Revert "gro: Fix legacy path napi_complete crash", From: David Miller In-Reply-To: <20090325225456.GA3271@ami.dom.local> References: <20090325122635.GA6489@gondor.apana.org.au> <20090325225456.GA3271@ami.dom.local> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1412 Lines: 44 From: Jarek Poplawski Date: Wed, 25 Mar 2009 23:54:56 +0100 > Herbert Xu wrote, On 03/25/2009 01:26 PM: > > > On Wed, Mar 25, 2009 at 01:20:46PM +0100, Ingo Molnar wrote: > >> ok - i have started testing the delta below, on top of the plain > >> revert. > > > > Thanks! BTW Ingo, any chance you could help us identify the problem > > with the previous patch? I don't have a forcedeth machine here > > and the hang you had with my patch that open-coded __napi_complete > > appears intimately connected to forcedeth (with NAPI enabled). > > Of course it's too late for verifying this now, but (for the future) > I think, this scenario could be considered: > > process_backlog() netif_rx() > > if (!skb) > local_irq_enable() > if (queue.qlen) //NO > napi_schedule() //NOTHING > __skb_queue_tail() //qlen > 0 > napi_complete() > ... ... > Every next netif_rx() sees > qlen > 0, so napi is never > scheduled again. > > Then, something like this might work... Excellent detective work, I would have never figured this one out. Herbert can you take a good look at this can confirm Jarek's findings? Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/