From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751939Ab3KSAAF (ORCPT ); Mon, 18 Nov 2013 19:00:05 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:48502 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751418Ab3KSAAD (ORCPT ); Mon, 18 Nov 2013 19:00:03 -0500 Date: Tue, 19 Nov 2013 00:59:59 +0100 From: Frederic Weisbecker To: Peter Zijlstra Cc: Sebastian Andrzej Siewior , Thomas Gleixner , Mike Galbraith , LKML , RT , "Paul E. McKenney" Subject: Re: [PATCH v2] rtmutex: take the waiter lock with irqs off Message-ID: <20131118235956.GA1810@localhost.localdomain> References: <1383794799.5441.16.camel@marge.simpson.net> <1383798668.5441.25.camel@marge.simpson.net> <20131107125923.GB24644@localhost.localdomain> <1384243595.15180.63.camel@marge.simpson.net> <20131115163008.GB12164@linutronix.de> <20131115201436.GC12164@linutronix.de> <20131118141021.GA10022@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131118141021.GA10022@twins.programming.kicks-ass.net> 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 On Mon, Nov 18, 2013 at 03:10:21PM +0100, Peter Zijlstra wrote: > --- a/kernel/softirq.c > +++ b/kernel/softirq.c > @@ -746,13 +746,23 @@ void irq_exit(void) > #endif > > account_irq_exit_time(current); > - trace_hardirq_exit(); > sub_preempt_count(HARDIRQ_OFFSET); > - if (!in_interrupt() && local_softirq_pending()) > + if (!in_interrupt() && local_softirq_pending()) { > + /* > + * Temp. disable hardirq context so as not to confuse lockdep; > + * otherwise it might think we're running softirq handler from > + * hardirq context. > + * > + * Should probably sort this someplace else.. > + */ > + trace_hardirq_exit(); > invoke_softirq(); > + trace_hardirq_enter(); > + } > > tick_irq_exit(); > rcu_irq_exit(); > + trace_hardirq_exit(); Looks like a change we really want! Thanks! > } > > void raise_softirq(unsigned int nr)