Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5410536rwb; Tue, 17 Jan 2023 13:26:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXtThTBvmjP+hxXk+5pi6fCiUniB9Fpljj3/xy1p+4/rj7MF2PeaPVgnzBQ3wCr1+0WJSqJ8 X-Received: by 2002:a17:902:9a82:b0:18d:d954:5f24 with SMTP id w2-20020a1709029a8200b0018dd9545f24mr5004948plp.6.1673990794534; Tue, 17 Jan 2023 13:26:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673990794; cv=none; d=google.com; s=arc-20160816; b=gdEX27F68yH/MmNNBuDcS76GlGbK4Uhh+Xblx20UMCHTeZQIjxxYGqMGI5PTnReAfL S7bfMVWfDjcUvgigjTl4gvjoFrI6qJhQdGLCOmqZ0OI44BTpGzRV1iP6ZbintrtftOdr HVtPdGavaHa90sJIyhKSyvpd0SBE34Nwfrov/90F+SVYoIApKk6wp0XyvmYu4gfKXLPA lghoMVZSL3cCOv1VBSDb8yTp5KENZ5uI8d3wHx/nv61obrgdah1QCr6+NypFXRePoHF5 fv5+Cofg5aPYdB5U9dkiWxa/uBBr7xCSWwGlozlmP7oC88ws0w0azhOuK//DxXw8Wi8X fkFw== 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=tzy+QJel1o570ll8ded+eT5+kw/pN+wVjUYt8cfF8Co=; b=hf/qwCzNwpN6f0qA/sHx8jU3Vu5HaAnm8RPE6XGF5FMVme69A1+0fd1aVIsmVUWa0d joXUBXDKMUXYChm1XGTy9ccZER9bW87ku6EaazUit/Z/oVWJpsutdt9wjeDkxF0cwFDN gN++2MjkqYlKBm17depNTIZ4J12P/+zGcMKbBa5a2FrgWp1WKPLt2QIFgSFYGRtGNQuP tP7pbqQ0BzCVO8HojlujGMfj0noN7RpKoIT+paFFmXl2U5aESTIhf+mkA05ZkFhA/TGs OPI9kxuB9igoYwQT5OmzTINZnfohy2cyAdpMzteoh4UhXCQcBjvqZZgfgFYcBo630uWz 9/FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qiDs3bkW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a170902ef4e00b00189aee21a03si32200611plx.423.2023.01.17.13.26.29; Tue, 17 Jan 2023 13:26:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qiDs3bkW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbjAQVQk (ORCPT + 46 others); Tue, 17 Jan 2023 16:16:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbjAQVPH (ORCPT ); Tue, 17 Jan 2023 16:15:07 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B3353B0D4; Tue, 17 Jan 2023 11:37:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ED4D861514; Tue, 17 Jan 2023 19:37:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60EB4C433D2; Tue, 17 Jan 2023 19:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673984255; bh=t6g2SSM3g8PpaGH31BjO5/jj+xwDslS5NO8uD6va4Dk=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=qiDs3bkWnP14mvlyz7SIVFjUhWxhf1YTO3Uo5P5IO9Uvne5aFZKEYmG863Nw4vURX tgoCvlVbtnp7BYXhiqgGFVqE7TcmuqiQ6SZqzDwyvgUAb+alPnKxZrGK/x50chrimo pH67AEptS+Ku9QSetT2pM6ynOhjPxZWbI6UXJo9/+ypiM7jcxsnsLwGL/XI1zR35jn Pfk3rZC2w6QVnzmicuojaHfU4AZq9fCYQLRo2VrutsctsE82FS8JjKBSWT33lkESda SREPYLkesLoRvWxhH7oeQWAHjWw3VDbLnoh13DDCb1gYoLipDGuYA2mCJeOoL4M/I4 xMCKC3tLlk/cg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id F23A35C0543; Tue, 17 Jan 2023 11:37:34 -0800 (PST) Date: Tue, 17 Jan 2023 11:37:34 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: Joel Fernandes , linux-kernel@vger.kernel.org, Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , rcu@vger.kernel.org, fweisbec@gmail.com, urezki@gmail.com Subject: Re: [PATCH v2 rcu/dev 1/2] rcu: Track laziness during boot and suspend Message-ID: <20230117193734.GO2948950@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20230112005223.2329802-1-joel@joelfernandes.org> <20230115162504.08ef72b0@rorschach.local.home> <20230117143224.6fbf7da8@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230117143224.6fbf7da8@gandalf.local.home> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 17, 2023 at 02:32:24PM -0500, Steven Rostedt wrote: > On Sun, 15 Jan 2023 16:34:58 -0500 > Joel Fernandes wrote: > > > > > +EXPORT_SYMBOL_GPL(rcu_async_hurry); > > > > > > > > > > Where do you plan on calling these externally, as they are being > > > marked exported? > > > > > > If you allow random drivers to enable this, I can see something > > > enabling it and hitting an error path that causes it to never disable > > > it. > > > > You mean, just like rcu_expedite_gp() ? > > > > > I wouldn't have EXPORT_SYMBOL_GPL() unless you really know that it is > > > needed externally. > > > > At the moment it is not called externally but in the future, it could > > be from rcutorture. If you see rcu_expedite_gp(), that is exported > > too. I was just modeling it around that API. > > The reason for the export should have been mentioned in the change log if > the patch is not obvious to why it is being exported. Would something like this suffice? With attribution, of course. Export rcu_async_should_hurry(), rcu_async_hurry(), and rcu_async_relax() for later use by rcutorture. Thanx, Paul