From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFC05C433EF for ; Wed, 20 Apr 2022 15:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350606AbiDTP7p (ORCPT ); Wed, 20 Apr 2022 11:59:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242908AbiDTP7l (ORCPT ); Wed, 20 Apr 2022 11:59:41 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54EE32DD63 for ; Wed, 20 Apr 2022 08:56:55 -0700 (PDT) Date: Wed, 20 Apr 2022 17:56:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1650470213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VVj4PC9oWNqvYVPXKPf4qEimB9W75/+kwVZ5tR23GpI=; b=XuI+FMLzOWNK0frrgUoXV8NElncf/dmQtHo1wQaRoKrXtriVicAAu+eLQUn1NfTcc+5Uoc Aza3nXF97Gr+bhoQQoA/IrJY0ijOjUeVkF9AzThgV10uVH7zw3yetKIKELAJkt8KBZcbLa bja5awR4dB67a6gVmtqf85vRn8776HmZG4K4X0o4fg1SCZ708Q4Bk5ovBH5kZgR9vSgEum GlxBeKxRguORhDYuLZ14CdSNjbL3UPS/uzGu2o04V+tlIRi3MJ1EpP0YHaGu1EWz3fpDuI grxhHufQFSVM6l1JVJSy4ql7q4W02dqsi1kMtdS9Vnt1eAtMe43Gj4J15YUrAA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1650470213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VVj4PC9oWNqvYVPXKPf4qEimB9W75/+kwVZ5tR23GpI=; b=DM27W01wqlcTieEjBDOGN84ro76MphENbP1EauMN0mtTmhqZ11Gx0bhVQyGZkx0Q/eZjBS P2fqeYCSvVI6BjAQ== From: Sebastian Andrzej Siewior To: Thomas Gleixner Cc: LKML , Christoph Hellwig , Peter Zijlstra Subject: Re: [patch V5 3/3] smp: Make softirq handling RT safe in flush_smp_call_function_queue() Message-ID: References: <20220413132836.099363044@linutronix.de> <20220413133024.356509586@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220413133024.356509586@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-04-13 15:31:05 [+0200], Thomas Gleixner wrote: =E2=80=A6 > +#ifdef CONFIG_PREEMPT_RT > +extern void do_softirq_post_smp_call_flush(unsigned int was_pending); > +#else > +static inline void do_softirq_post_smp_call_flush(unsigned int unused) > +{ > + do_softirq(); > +} > +#endif > + =E2=80=A6 > +void softirq_post_smp_call_flush(unsigned int was_pending) > +{ > + if (WARN_ON_ONCE(was_pending !=3D local_softirq_pending())) > + invoke_softirq(); > +} > + > #else /* CONFIG_PREEMPT_RT */ fold, please. Signed-off-by: Sebastian Andrzej Siewior --- kernel/softirq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/softirq.c b/kernel/softirq.c index 1682586a69139..5b36ebe5e20de 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -301,7 +301,7 @@ static inline void invoke_softirq(void) * get raised which haven't been raised before the flush, warn so it can be * investigated. */ -void softirq_post_smp_call_flush(unsigned int was_pending) +void do_softirq_post_smp_call_flush(unsigned int was_pending) { if (WARN_ON_ONCE(was_pending !=3D local_softirq_pending())) invoke_softirq(); Sebastian