Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1427263rdb; Wed, 6 Dec 2023 20:37:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHK49q1Z/syPYiiWFoRE/1ieJ930EnTrtLDFzuHjYLA8FvyNDo+ASXbxc9ZUeuw+UFGH71W X-Received: by 2002:a17:902:bb94:b0:1d0:6ffd:cec8 with SMTP id m20-20020a170902bb9400b001d06ffdcec8mr1322125pls.129.1701923858909; Wed, 06 Dec 2023 20:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701923858; cv=none; d=google.com; s=arc-20160816; b=kbaulxx+/3/rs8GMeS0MsQP5WUVT/AshP8SJ7PxycZER5CY6FbZQaADbFRwvI0EIMS ZkQA8fqcbGGDtcpyMzRbUlnnXTo/8K8e7JIE+ShaCX30aRLEe4+zZ8OjIFAEV9R9M2Pu Ug5tI5JEFJh+pL1zDjtFvETT6A4sad8KnCCgDBdltTYnDvsap//LOmgYJ16rxvuSZq25 3qWIJFfQH76eCuxhWG1GBBKov53x/1vyB6Y76YRo0kVvjVoxk4odwJ5ML42G7J8yad+J fL1RTk+M9PHhsbX2a3iM4sC9dFvoZ9fA0K2c8lENLVS8Ke/0IUp9EbNLU4RlT9/WeYta 6JKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=/S78nvf6CNYoLyksVn2OLFgo8skkFsbLNC7iT3h0xO4=; fh=73WnsqQocNBJdZtBacoN3aNJQzSE53jrVKv5DRsDqsY=; b=HMUOzBglj7QTzvlnIAwnBJ4ydZtp9YxBcDi6e2ImYjMS0yCWPWK1FlIDo+xC4k5DkN nkXE8RDFeeXJfzBK+fiThkvf3Gy+QrP0rPXuX1B53L0pr8zc/t9Hz/tFfOLeTk01VXCQ ixdm3ApmlyTk8Ee54koL+U7bcFemr+aJSodxSsuy3OHivMqSOgIdnGVcS0fww04RTwSR +iHPFf6Z55piIHU5tHP3SAN4zkhyIh9WRPHwvWTrcBT4Hg6pYhhm1s77+V6XFTXjWpHf qET7BZ6JKB1MXKxyDHFGQMsBGIBoyOe1lnF4rbhIeyDG8Px/vmt1tiV9VCa+U7XcfO7L E2BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lO7xMQ/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id b6-20020a170902bd4600b001cf5572d972si439287plx.210.2023.12.06.20.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 20:37:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lO7xMQ/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 106BC80A851F; Wed, 6 Dec 2023 20:37:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229449AbjLGEhM (ORCPT + 99 others); Wed, 6 Dec 2023 23:37:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjLGEhC (ORCPT ); Wed, 6 Dec 2023 23:37:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C897710C7 for ; Wed, 6 Dec 2023 20:37:08 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50E99C433C7; Thu, 7 Dec 2023 04:37:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701923828; bh=J/VsET9W1xTAZ1BYcQcmQfYgWVlazcI6Cc/4X4dTaUE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=lO7xMQ/QRFPtQ6IcrCFyd2vs+0r9ouZAW/Bj1uZ9qEVQqcSwhVsDDuvfxAZrZzT5K BHROptZV2Qf9yA8bXQmRtKhRio7Pwc8T/qPn7uvp6XEUbwdZtlC1hzpTaDAYgDmt+1 ClVCrLpxs+ch+SZz+OEs82pbU+oTYaHr5vOnW9RPjVvYnDm0qnM4bSzWb4tsvcmfwI aIYxnR54AABMdDdFq9tS3p38BYOfexP/7NLbmd6CApHePM6n5ww+dY6tZ//X11kG1P BUTLqW56cxsse460LTYzc+NjVdZymY7S8Xp02IMF7I3GrTq/Fwmn6/0qCCOntoXUHU IWJB9WUSy5Ozw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id D5F00CE0E88; Wed, 6 Dec 2023 20:37:07 -0800 (PST) Date: Wed, 6 Dec 2023 20:37:07 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: Ankur Arora , 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: <3cc64b80-0975-4cdf-81ea-952ca80976e4@paulmck-laptop> Reply-To: paulmck@kernel.org 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> <20231206211022.710ada02@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231206211022.710ada02@gandalf.local.home> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 06 Dec 2023 20:37:26 -0800 (PST) On Wed, Dec 06, 2023 at 09:10:22PM -0500, Steven Rostedt wrote: > 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? Given that PREEMPT_RCU has been getting along fine without it, I agree with Steve on this one. Unless and until someone demonstrates otherwise, but such a demonstration would almost certainly affect current code, not just the lazy-preemption changes. Thanx, Paul > -- Steve > > > > + rcu_all_qs_check(); > > } while (0) > > > > #define preempt_enable_notrace() \