From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx2.mail.elte.hu ([157.181.151.9]:48863 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753461AbYFTNrm (ORCPT ); Fri, 20 Jun 2008 09:47:42 -0400 Date: Fri, 20 Jun 2008 15:46:37 +0200 From: Ingo Molnar To: Johannes Berg Cc: Linus Torvalds , Linux Kernel list , Michael Buesch , David Ellingsworth , linux-wireless Subject: Re: [PATCH/RFC] remove irqs_disabled warning from local_bh_enable Message-ID: <20080620134637.GA8135@elte.hu> (sfid-20080620_154746_399469_BA98F3FB) References: <1213739834.3803.137.camel@johannes.berg> <1213774177.3803.164.camel@johannes.berg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1213774177.3803.164.camel@johannes.berg> Sender: linux-wireless-owner@vger.kernel.org List-ID: * Johannes Berg wrote: > Subject: clean up and comment local_bh_enable code > > There's no need to use local_irq_save() over local_irq_disable() in > the local_bh_enable code since it is a bug to call it with irqs > disabled and do_softirq will enable irqs if there is any pending work. > Consolidate the code from local_bh_enable and ..._ip to avoid having a > disconnect between them in the warnings they trigger that is currently > there. Also always trigger the warning on in_irq(), not just in the > trace-irqflags case. applied to tip/core/softirq for testing, thanks Johannes. Ingo