Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752292AbXH0FxY (ORCPT ); Mon, 27 Aug 2007 01:53:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751373AbXH0FxM (ORCPT ); Mon, 27 Aug 2007 01:53:12 -0400 Received: from mx12.go2.pl ([193.17.41.142]:48764 "EHLO poczta.o2.pl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751357AbXH0FxL (ORCPT ); Mon, 27 Aug 2007 01:53:11 -0400 Date: Mon, 27 Aug 2007 07:54:26 +0200 From: Jarek Poplawski To: Mariusz Kozlowski Cc: Andrew Morton , netdev@vger.kernel.org, Jeff Garzik , David Woodhouse , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2.6.23-rc3-mm1] request_irq fix DEBUG_SHIRQ handling Re: 2.6.23-rc2-mm1: rtl8139 inconsistent lock state Message-ID: <20070827055426.GA1703@ff.dom.local> References: <20070822133511.GH1684@ff.dom.local> <200708251143.09425.m.kozlowski@tuxland.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708251143.09425.m.kozlowski@tuxland.pl> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1880 Lines: 44 On Sat, Aug 25, 2007 at 11:43:08AM +0200, Mariusz Kozlowski wrote: > > > ================================= > > > [ INFO: inconsistent lock state ] > > > 2.6.23-rc2-mm1 #7 > > > --------------------------------- > > > inconsistent {in-hardirq-W} -> {hardirq-on-W} usage. > > > ifconfig/5492 [HC0[0]:SC0[0]:HE1:SE1] takes: > > > (&tp->lock){+...}, at: [] rtl8139_interrupt+0x27/0x46b [8139too] ... > I tested your patch and it still happens. Dmesg info from patched kernel attached. > I coulnd't reproduce that on 2.6.23-rc3-mm1 - but on 2.6.23-rc2-mm2 it is easily > reproducible. > > If you need more info, test some patches, etc. - just mail me. > ... > ========================================================= > [ INFO: possible irq lock inversion dependency detected ] > 2.6.23-rc2-mm2 #2 > --------------------------------------------------------- > runscript.sh/5065 just changed the state of lock: > (_xmit_ETHER){-+..}, at: [] dev_watchdog+0x17/0xcc > but this lock took another, soft-irq-unsafe lock in the past: > (&tp->lock){--..} > > and interrupts could create inverse lock ordering between them. It's OK! These're 2 different warnings. As a matter of fact, my patch wasn't supposed to fix any of them, but something similar to the first one, which was possible, but for some reason wasn't reported by lockdep. The first warning was fixed by Andrew Morton's patch to free_irq(), so it shouldn't happen in -rc3-mm. The second warning could have been fixed too, I don't know, but since it's quite long, I would prefer to think about it only if it still happens in current -mm's. Thanks, Jarek P. - 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/