Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932137Ab1EYGGM (ORCPT ); Wed, 25 May 2011 02:06:12 -0400 Received: from outmail019.snc4.facebook.com ([66.220.144.151]:52718 "EHLO mx-out.facebook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752069Ab1EYGGK (ORCPT ); Wed, 25 May 2011 02:06:10 -0400 Date: Tue, 24 May 2011 23:06:09 -0700 From: Arun Sharma To: Eric Dumazet Cc: Arun Sharma , Maximilian Engelhardt , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, StuStaNet Vorstand Subject: Re: Kernel crash after using new Intel NIC (igb) Message-ID: <20110525060609.GA32244@dev1756.snc6.facebook.com> References: <201104250033.03401.maxi@daemonizer.de> <1303878240.2699.41.camel@edumazet-laptop> <1303878771.2699.44.camel@edumazet-laptop> <201104271352.00601.maxi@daemonizer.de> <20110512211033.GA3468@dev1756.snc6.facebook.com> <1305234953.2831.2.camel@edumazet-laptop> <20110524213327.GA3917@dev1756.snc6.facebook.com> <1306291469.3305.11.camel@edumazet-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1306291469.3305.11.camel@edumazet-laptop> 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 Content-Length: 770 Lines: 22 On Wed, May 25, 2011 at 04:44:29AM +0200, Eric Dumazet wrote: > > Hmm, thanks for the report. Are you running x86 or another arch ? > This was on x86. > We probably need some sort of memory barrier. > > However, locking this central lock makes the thing too slow, I'll try to > use an atomic_inc_return on p->refcnt instead. (and then lock > unused_peers.lock if we got a 0->1 transition) Another possibility is to do the list_empty() check twice. Once without taking the lock and again with the spinlock held. -Arun -- 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/