Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758630Ab3IEW5B (ORCPT ); Thu, 5 Sep 2013 18:57:01 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:63992 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753936Ab3IEW4z (ORCPT ); Thu, 5 Sep 2013 18:56:55 -0400 Date: Fri, 6 Sep 2013 00:56:50 +0200 From: Frederic Weisbecker To: LKML Cc: Benjamin Herrenschmidt , Paul Mackerras , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , "H. Peter Anvin" , Linus Torvalds , James Hogan , "James E.J. Bottomley" , Helge Deller , Martin Schwidefsky , Heiko Carstens , "David S. Miller" , Andrew Morton Subject: Re: [PATCH 3/3] irq: Comment on the use of inline stack for ksoftirq Message-ID: <20130905225649.GE20519@somewhere> References: <1378330796.4321.50.camel@pasglop> <1378395204-25342-1-git-send-email-fweisbec@gmail.com> <1378395204-25342-4-git-send-email-fweisbec@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1378395204-25342-4-git-send-email-fweisbec@gmail.com> 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: 1797 Lines: 50 On Thu, Sep 05, 2013 at 05:33:24PM +0200, Frederic Weisbecker wrote: > Ksoftirqd shouldn't need softirq stack since it's executing > in a kernel thread with a callstack that is only beginning at > this stage. > > Lets comment about that for clarity. > > Signed-off-by: Frederic Weisbecker > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Ingo Molnar > Cc: Thomas Gleixner > Cc: Peter Zijlstra > Cc: H. Peter Anvin > Cc: Linus Torvalds > Cc: Paul Mackerras > Cc: James Hogan > Cc: James E.J. Bottomley > Cc: Helge Deller > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: David S. Miller > Cc: Andrew Morton > --- > kernel/softirq.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/kernel/softirq.c b/kernel/softirq.c > index 657e047..1de0322 100644 > --- a/kernel/softirq.c > +++ b/kernel/softirq.c > @@ -759,6 +759,7 @@ static void run_ksoftirqd(unsigned int cpu) > { > local_irq_disable(); > if (local_softirq_pending()) { > + /* No need to use softirq stack here */ Looking at that comment now, it probably deserve more details :) > __do_softirq(); > rcu_note_context_switch(cpu); > local_irq_enable(); > -- > 1.7.5.4 > -- 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/