From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762133AbYFTQCB (ORCPT ); Fri, 20 Jun 2008 12:02:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758676AbYFTQBr (ORCPT ); Fri, 20 Jun 2008 12:01:47 -0400 Received: from bu3sch.de ([62.75.166.246]:52937 "EHLO vs166246.vserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758235AbYFTQBq (ORCPT ); Fri, 20 Jun 2008 12:01:46 -0400 From: Michael Buesch To: Ingo Molnar Subject: Re: [PATCH/RFC] remove irqs_disabled warning from local_bh_enable Date: Fri, 20 Jun 2008 18:01:09 +0200 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: Johannes Berg , Linus Torvalds , Linux Kernel list , David Ellingsworth , linux-wireless References: <1213739834.3803.137.camel@johannes.berg> <200806201736.23916.mb@bu3sch.de> <20080620155541.GC6656@elte.hu> In-Reply-To: <20080620155541.GC6656@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806201801.09858.mb@bu3sch.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 20 June 2008 17:55:41 Ingo Molnar wrote: > > * Michael Buesch wrote: > > > On Friday 20 June 2008 17:27:48 Ingo Molnar wrote: > > > [] local_bh_enable_ip+0xd1/0xe0 > > > [] _spin_unlock_bh+0x2f/0x40 > > > [] vortex_timer+0xe2/0x3e0 > > > > > real bug or false positive? > > > > Well, a timer runs with IRQs disabled, no? So this would be a bug. > > indeed - agreed :) [no time for me to fix it, but can test any rfc patch.] A quick workaround always is to convert the lock into an _irqsafe lock. Although it introduces higher overhead (interrupt-wise), it prevents the bug. A real fix would require to understand the locking in the driver, which I don't, as I never looked at the driver. :) -- Greetings Michael.