Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5482470rwb; Tue, 17 Jan 2023 14:33:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXtf9M0VPC6LNRkgSrGiT5ma0dYDwT/EEQOQ7/hr31XSUllVSfd00TZRh23sa/77ir8ArLzq X-Received: by 2002:a05:6a20:9c97:b0:af:c871:c723 with SMTP id mj23-20020a056a209c9700b000afc871c723mr4104314pzb.33.1673994822933; Tue, 17 Jan 2023 14:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673994822; cv=none; d=google.com; s=arc-20160816; b=GHqST2z0YYXXsJDU1StkdflBG+IgaIaXbH9uGyrvkhR2x9rICXMjkwuUV7aEtep3OU LEcLGRmMTd6PrlBC1pCCOTsKm54gOnQFNUc5BrhFbvQ0L5torBItHZg1ZrADo+5vbuXA 7u3qLJYe+7zwHoRtNKUckOKsEG9Fmuf9mpuugwKvb0J47BJ+ASa3/L14UTqRUObCzI22 CU7qyVe6AT7L9iPWgXanNXAJFXpSxJkC/vFtoMyjFcwbwk3iExTt3hJbp6nb9q5Y5Aqg 7mkr4jAyIDf8W3ThePPOG++xt06mjRRMxydj2iWgfFzgbG37rCfnLkc+9eRFWy/GS8XQ I+iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CVHl3CyYmBwOxeuIn2rI4GuiLJQNlWei9nWh+ruH28g=; b=ScOGLwFE1bViizynH9rLQc0bDKHR0kMEFZoSssbm78pKFOlK67ayBX9xK8ltfRvXeg z2y9gRw1BgYKLc6zjIw8506s7gmvAKfieKhUzZ12LDxarFVCV2ZfHy/X8QK6/yp7S+Gw C66jAVRrqK495VEAUc5H8e0M+i4OXVDVLCQGAW3Y1rdKRS+qDVd3K13gkU2SBSHx05DF C33U4+vZUo0pj7nftedQ6gIIzytqc6DcejDMdYN7THe0y0eCZf297PJpkoLRK+tofXLF qCmGeeABkepkGVW8qHZrtgrMWPbBYGiMSBakJywzYwO2FQFF2fLOUMQWggmHbMeX7eTs T30A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=OgRLjzfK; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k191-20020a6384c8000000b004cf6f7d04c1si2423680pgd.341.2023.01.17.14.33.37; Tue, 17 Jan 2023 14:33:42 -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=@joelfernandes.org header.s=google header.b=OgRLjzfK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229494AbjAQV2b (ORCPT + 46 others); Tue, 17 Jan 2023 16:28:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjAQV0y (ORCPT ); Tue, 17 Jan 2023 16:26:54 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5CFD4C6E8 for ; Tue, 17 Jan 2023 11:45:25 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id bf43so48604897lfb.6 for ; Tue, 17 Jan 2023 11:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CVHl3CyYmBwOxeuIn2rI4GuiLJQNlWei9nWh+ruH28g=; b=OgRLjzfKd5KOKCaXGS+Y2kcI38Z+2Yub/6sPZFuD77pvpFzZlLpKlvxeWe1gz7pwap yKN0UWxUcLWGSOaCLuvUti/tne5oRXq/e0+qWi07lmVabjRBVLXIRoel+B2yVFLYc0zv TLq9idplrIeMg0mzOH2KnnszI7v9PUo1v8SA4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CVHl3CyYmBwOxeuIn2rI4GuiLJQNlWei9nWh+ruH28g=; b=Sly7fZMZhpxFacA1pZm2mCjWIZnMlRksZQlNGQj3XIX2FAbmv2pfrk6SXa6Q9yvor2 TcbUqOEx3QVov1Nil43cQCchYO6FhYrYj9zm8NrvRkXnkYVvrEDw3jGYc5WFMDCimCL5 HlHwqtwQIqaLQgbX9d+y4Mx99BkKPCb3JS0W8Nr7cWww/6HyXOOzXLYA5jTLL/k3VPfM uY6nLoCQuw0DCxTANryuciiFVy5Otz76M4AC9nri68xA/hL0IBe4CDrYhnscstF3IdO6 JsFZdZb0j2zkwgg2QLnX1Y+erM4/fdwxrmdvMKmrkkS6mJ9c+LiSRYKhydj4HDrML63A Ns/w== X-Gm-Message-State: AFqh2kr0Ks6FqB1w3TmqfTfQBwiTLB2FY+OIBIfCif9fC/OoyYZuG1Uy iujdbVlPyds4xhK10qE1ZzHIFUtDKEHBoRfSz+IPeQ== X-Received: by 2002:a05:6512:39ce:b0:4aa:148d:5168 with SMTP id k14-20020a05651239ce00b004aa148d5168mr228410lfu.561.1673984723933; Tue, 17 Jan 2023 11:45:23 -0800 (PST) MIME-Version: 1.0 References: <20230112005223.2329802-1-joel@joelfernandes.org> <20230115162504.08ef72b0@rorschach.local.home> <20230117143224.6fbf7da8@gandalf.local.home> <20230117193734.GO2948950@paulmck-ThinkPad-P17-Gen-1> In-Reply-To: <20230117193734.GO2948950@paulmck-ThinkPad-P17-Gen-1> From: Joel Fernandes Date: Tue, 17 Jan 2023 19:45:12 +0000 Message-ID: Subject: Re: [PATCH v2 rcu/dev 1/2] rcu: Track laziness during boot and suspend To: paulmck@kernel.org Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , rcu@vger.kernel.org, fweisbec@gmail.com, urezki@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 7:37 PM Paul E. McKenney wrote: > > 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. Looks good to me Paul, and thanks for the suggestion Steven! - Joel