Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp331506rdh; Thu, 23 Nov 2023 05:21:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHTu2p9q/798Eun+nnp6Yq3QvcvmH/WDT+SlbCg7zUeKIL/IPu54DGblYkhR23344zxzHz X-Received: by 2002:a05:6a00:3a1d:b0:6b1:b5c4:a8b0 with SMTP id fj29-20020a056a003a1d00b006b1b5c4a8b0mr6123812pfb.23.1700745690286; Thu, 23 Nov 2023 05:21:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700745690; cv=none; d=google.com; s=arc-20160816; b=MA5K6GJRot/amSa+xnNAwA2cctAEdVNff3kJPqo/R+yogl/EG+/BLvhH98cZfJ4SBH rZkRUnfepyiepb7SYmccblz858uf1FIFue1eOWc6KWD0KbUQT+lpw/BVT7gempPo8Lwa tKrI/7y2kbZ356tTzihuqO+cBDsq+KzH7nLxO/zRgFJZb3loKnl8QdTMHg8UMKNR5HNk 5b7OimpBjDA65E2dN6Ubjo98G50GyMXC0SZwAPTT7rp9Bcwb0wgzkL1fLAei7p0Npk2S KcvgyVw5P3/VhwbaUBbUG52XY3y/4vm05/hhBg1KBCbRiqBR2fUPGl9F12FJFMYQrCCG 1nFg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=88DjvNfImhJw5JraXMVRRgOPHpe0FZ5MsRFCtVbbVY0=; fh=NRR8ElCxAOb0YRPDcQ+At6BEZKv7w8WLIDG7cNJBDio=; b=ETIESDXtIYzPgBN3SqCPDGwq/ME1BrDWgsfwtC5faH2hObwe7H/z/fMcgsbL0+YW+x jJkZmC3sCNJZ2hRS9yI+Z3joa/KMlQC6qEmnMyBlZRFClma2gFw3BlBL1tzzY5Dzq7vm i9vcE0MJHyyMUBMH7r1pLfMtpWpxmyE5rvZX/exlWlwBfBO1gt9R3HQoF4CVHMQuBzJH gl8YhzuAXeuvblCBParwLSUvO7M2NigoXnof3IDeP2lJ8unjKBU5/7SHhltt9i3boWX9 ITOa8QXFV4FOpplNwlG2PDCvooKgjS7I3N7XYdgKwATQF941xlwrD63x7Go7irnERZiw Q4Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=iJHeAaCs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w15-20020a056a0014cf00b006c3077a3400si1243943pfu.279.2023.11.23.05.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:21:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=iJHeAaCs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 9F4658329A13; Thu, 23 Nov 2023 05:21:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345439AbjKWNVD (ORCPT + 99 others); Thu, 23 Nov 2023 08:21:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345271AbjKWNVB (ORCPT ); Thu, 23 Nov 2023 08:21:01 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9D551B3 for ; Thu, 23 Nov 2023 05:21:07 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-32f737deedfso472723f8f.3 for ; Thu, 23 Nov 2023 05:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1700745666; x=1701350466; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=88DjvNfImhJw5JraXMVRRgOPHpe0FZ5MsRFCtVbbVY0=; b=iJHeAaCs5M7l+rlPH4EwgjuNlNAtd5dAlUbPFyXl85Yq0OvREOGW5Pneha9S8GMj5Y Q9jSxsyGPG1+Y5pZVdZww8IPBpFVH/vYYUuUUR8l9RPnzGh7mbZzBvjRDGLXP7RVsyHN R+ACsbPYRl1bETkOTPduar6/VGFoEWas8Gfn9Q+/6nh4XXxzRphw9yaAxk/DMVlaFbTr eos8GQCqVIFS65Xkpyc1ZyJUCLnhH8TJffkK4cRQRLat1ptV9eJVk3Slw24oBfiESJQI GLRg9Da5YpeBZkahrweZO6T7dk82AC+VWw2xV7jUdt5cFz1XkA2cfGenIUaO3fT/1Bds z+4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700745666; x=1701350466; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=88DjvNfImhJw5JraXMVRRgOPHpe0FZ5MsRFCtVbbVY0=; b=ZkyMLe0835jHLpcCUHvPA45lfvqkirwFKXaHSwSLjuYOAhYK4pwYxtnDLIOTsVNcAs JJPuZPZMeVS9SDbSrauAG7nvgV6cWrZZ+rV/nzU9sfLGq0WSxvMO53wxNZZHmWyZN7fT rLQNlpQ2ZDI4XiLwgFhQXePF5QM4vIVjhqMu23nN5mkGjvbComWv9cdw0CoHOSlQvFwg 7PngSIzr67gMg3YyHK5sDP1xD8FkYY3IEt+m2tAbLYygnKcSrWE6baJpAYLVQLgoD01/ he2qd1ow48hlWtMFOjfc2JSSL3akv6t3B7EGUFGVN6io0ElHl/r5/iLQlHLDYq2zKrKQ zWqw== X-Gm-Message-State: AOJu0YwKHvUKrM7vZaGGr/elroTPU4ydFokCF50hN7zsXK3V+cBG+6FP wfwQdp11bkI0SD7aioTuz2AYGA== X-Received: by 2002:a5d:698f:0:b0:332:cae1:c610 with SMTP id g15-20020a5d698f000000b00332cae1c610mr2656229wru.23.1700745666249; Thu, 23 Nov 2023 05:21:06 -0800 (PST) Received: from airbuntu (host109-151-228-202.range109-151.btcentralplus.com. [109.151.228.202]) by smtp.gmail.com with ESMTPSA id z12-20020a5d640c000000b00332cc7c3aaasm1672062wru.21.2023.11.23.05.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:21:05 -0800 (PST) Date: Tue, 21 Nov 2023 22:15:56 +0000 From: Qais Yousef To: "Paul E. McKenney" Cc: Joel Fernandes , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Andrea Righi , John Stultz , linux-kernel@vger.kernel.org, rcu@vger.kernel.org Subject: Re: [PATCH] rcu: Provide a boot time parameter to enable lazy RCU Message-ID: <20231121221556.vtpmboamgszbt3jf@airbuntu> References: <20231121205304.315146-1-qyousef@layalina.io> <811b2157-1009-4339-8ff2-0433512f3094@paulmck-laptop> <20231121214415.ovoskvbjarzpxi6e@airbuntu> <8ad4e628-7a88-490c-a54d-df09f851f189@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8ad4e628-7a88-490c-a54d-df09f851f189@paulmck-laptop> X-Spam-Status: No, score=-0.3 required=5.0 tests=DATE_IN_PAST_24_48, DKIM_SIGNED,DKIM_VALID,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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 23 Nov 2023 05:21:27 -0800 (PST) On 11/22/23 15:26, Paul E. McKenney wrote: > > Either way; I'll follow what the crowd wants too :-) > > Usually a wise choice. ;-) > > But I must defer to the people using it. From Android PoV I'd like to be able to boot with default disabled and allow people to opt-in. At least for the time being until we have confidence no one is caught with surprise if this caused unexpected problems. In the future it might default to on once it gets wider usage and testing. So having a new Kconfig to DEFAULT_OFF sounds good to me to enable a compile time switch to pick the default with a boot time to further control. Which would be my plan for v2 unless I hear another suggestion in the coming week (where I hope people would have had a chance to look and think about it). > > No need for the rcu_barrier() then? Only reason why we use the _cb flavour > > The module_param() parameters are processed during early boot, before > the boot CPU has enabled interrupts. In fact, before rcu_init() > is invoked, which is in turn long before the scheduler has started. > Calling rcu_barrier() that early is not so good for your kernel's > actuarial statistics. Ah, I missed that it is done that early. > > I am guessing that the module_param_cb() processing happens somewhat > later in the kernel's lifetime. Thanks! -- Qais Yousef