Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1380224rdb; Wed, 6 Dec 2023 18:10:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHs2xTHpidDGYODtWFjwIsziW81KaRPJBspqkbx+UN0TsAhu+A3wOn3+PjfFkch0VDK9zQF X-Received: by 2002:a05:6a20:3d85:b0:18f:97c:8a27 with SMTP id s5-20020a056a203d8500b0018f097c8a27mr2372131pzi.82.1701915009571; Wed, 06 Dec 2023 18:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701915009; cv=none; d=google.com; s=arc-20160816; b=ccbTANBfo/9L0tqKDvme9uYXKwU97ef1e0bHZlhaTENJmzkj/XYIxEuVwYiskzonXx HzHpYYcKl4ENcKfcs5EtlAnMskpxJBPo/1Ai922mCQcXbyiU+MaC9Hz3/O8MELY9ULGc QAr+Fa8C3C9uHVrTPaXNXO1DWpvhI8eKq4Ce1LHX/0Ec5nM5tOcRbQgi18VHfLYY9gaD FS9cA5ktbz+s/SLWVbnGcYO6dD8SXTWuGg3STmbGfhAvrU0IYpb2JXaUN4C1BgN9XwvE ymyrgYOuBhRD86IKQvFFaBdNukcTcPYf2pYHaZtyDfHpr2WBZA93BQliCKWcql4sNZnD rIww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=EiHR44p+y7VKzpd8BQSqBfj02kzr1W8mykM4tcDsv6g=; fh=k5DbMtSWMF4NK+QYfvIAkzr7eszs2POkCMGKNU9l9EI=; b=eZLWqxHMsJmDaowS6xl7CES+kaaO16BPVQENihsAh4mLx3LA+HcUwBIjx+k7XmUqoN Fvo8iRC3fL6kKyBAxItG7GoFv9Mur8haw+wGHKrQSwQn+UVtLwwWFo2zOVFWJyfQO1RL rmQaw4xdH9Mc/CDPoHJE91zw5uq8L3/mQT51rJLb4iE9trOn405hTSKsbfTwgqgd7FuK jLJ700SyG7HhBGmv2OCGoWpaOlAEc0MWNhe+lKdXGSjREqfVAohuTAMoC+v0is+awbAq qn+PlC5g8FH4uIuTnT4i/OIQFOIJKswvP/Pe4jF644gmSMraMFVZqpMwCvDVx8S8YqIz BR2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i23-20020a63e917000000b005859e22461csi269709pgh.817.2023.12.06.18.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 18:10:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4EDD8810F6ED; Wed, 6 Dec 2023 18:10:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235150AbjLGCJw (ORCPT + 99 others); Wed, 6 Dec 2023 21:09:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjLGCJv (ORCPT ); Wed, 6 Dec 2023 21:09:51 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2926D3 for ; Wed, 6 Dec 2023 18:09:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A20C3C433C8; Thu, 7 Dec 2023 02:09:53 +0000 (UTC) Date: Wed, 6 Dec 2023 21:10:22 -0500 From: Steven Rostedt To: Ankur Arora Cc: paulmck@kernel.org, Thomas Gleixner , linux-kernel@vger.kernel.org, peterz@infradead.org, torvalds@linux-foundation.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com, mingo@kernel.org, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, David.Laight@aculab.com, richard@nod.at, mjguzik@gmail.com Subject: Re: [RFC PATCH 48/86] rcu: handle quiescent states for PREEMPT_RCU=n Message-ID: <20231206211022.710ada02@gandalf.local.home> In-Reply-To: <87zfymn6h9.fsf@oracle.com> References: <20231107215742.363031-1-ankur.a.arora@oracle.com> <20231107215742.363031-49-ankur.a.arora@oracle.com> <2027da00-273d-41cf-b9e7-460776181083@paulmck-laptop> <87v89lzu5a.ffs@tglx> <209f0e89-7ebd-4759-9883-21d842d0d26c@paulmck-laptop> <87zfymn6h9.fsf@oracle.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 18:10:07 -0800 (PST) On Wed, 06 Dec 2023 17:31:30 -0800 Ankur Arora wrote: > --- > diff --git a/include/linux/preempt.h b/include/linux/preempt.h > index 9aa6358a1a16..d8139cda8814 100644 > --- a/include/linux/preempt.h > +++ b/include/linux/preempt.h > @@ -226,9 +226,11 @@ do { \ > #ifdef CONFIG_PREEMPTION > #define preempt_enable() \ > do { \ > barrier(); \ > if (unlikely(preempt_count_dec_and_test())) \ > __preempt_schedule(); \ > + else if (unlikely(raw_cpu_read(rcu_data.rcu_urgent_qs))) \ Shouldn't this still have the: else if (!IS_ENABLED(CONFIG_PREEMPT_RCU) && \ That is, is it needed when PREEMPT_RCU is set? -- Steve > + rcu_all_qs_check(); > } while (0) > > #define preempt_enable_notrace() \