Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2399784pxa; Fri, 7 Aug 2020 10:10:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYr0zZAG+BM2k+Q7dd1TCgakCmruMgABpRYSTdRPnszVkwhcTQT56zeOB+yuA7NpQAWzEF X-Received: by 2002:a17:906:248b:: with SMTP id e11mr10155228ejb.280.1596820215766; Fri, 07 Aug 2020 10:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596820215; cv=none; d=google.com; s=arc-20160816; b=KGAsOWyNdj25jbikSMFWDeNNdudkvSVSu8xNyIyyGxW9CLQyYfXkDNRdjpogpE0vVa 7OorS/3oZXkngAX2Oa8qtl/fOcmdda9UnZuvY59tO0pPDpFXmHiPLw9gMYwUNskPJT9q XnbeVXJZXz3myhBDggQruSZBfXig/gxuVm0wWTBBme01O3bYs9SEMfTC4ZOjGsH+lIY5 OC48T1w48KQvlA7Rz/MMPVSkBXfEyoqkg+q+NJi8/rZ4gnh+N6v+38Vscez1JNpSkUWr BE1Q7n9ngfowcRLrWP3R9tZlF4UcbzQiPke7fpmL8glkRKOxCQvVujZTs1uj/+TYGW8h OUuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DWbloqsrP0AQsrj6SmmxzbX/ZWsrIvuOIBVWCascTtc=; b=S60Z8K7nRZWt6iCqpuhOm6WH4B8w4g3Sy0jDIRQv4twpDVHd/Gq37bXoUk/qagxnCw ld55g46Pzj1klAgrHBUoIAOONGViFun17BlJuE009VeSd03CkKrLebD+4r9Yj0AJq8aK bSLyLxQzy1WjEVqdxUXmvaJ/gNsAxoh9BkKDGI5wjCLy+CsHfvrh8MzmI8UBqsx5gcGU J2nNmcWytvi/rRsyaYVLjTGBYC7K/0as/3fVZKeA6boZEP1OR6FQiPVJoU2eLfoSRTM7 48AMYbXJ4O43FjX3Objp7KbDakwo7AL31OxjfDpw6YUjVZfrqVVdoaNxpixbLsKj+SG0 u1DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="Q/KGFW4z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck8si5528431edb.82.2020.08.07.10.09.53; Fri, 07 Aug 2020 10:10:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="Q/KGFW4z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726987AbgHGRI1 (ORCPT + 99 others); Fri, 7 Aug 2020 13:08:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbgHGRHb (ORCPT ); Fri, 7 Aug 2020 13:07:31 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33D61C061A2D for ; Fri, 7 Aug 2020 10:07:31 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id t23so1800718qto.3 for ; Fri, 07 Aug 2020 10:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DWbloqsrP0AQsrj6SmmxzbX/ZWsrIvuOIBVWCascTtc=; b=Q/KGFW4zhhUvta6vR2CwSlNmcirLLQgN1UHKs1PAFMVRyM5AmvjqxtwQuc7zhSovGO ly9olFSHeHS0YAa+ZOraTOjnV5sE16p3X03nyz5uOiIugMnTcjuCsf9fkLhGjwlnByxU WJ4Zmlf/GRbSE4zEj22vV00mE/cMixdWHS0Z8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DWbloqsrP0AQsrj6SmmxzbX/ZWsrIvuOIBVWCascTtc=; b=gSjugiD8hwkODlp1TgF1CZKUYASjzZm4HQT1m6hrgJciC5gUSVYdTYBeSKvnvzS/m8 cBjl2cmTVWXagkxAaWm/Uck7WU2YZp67LOeRcNJFfStYbgXwk3NJYtVIo8E0c5n5FBXR SmFh5Ym5EhysHZ1ObHI4qaX/toUrvYf+AzvoI9S5HDjSd+N0U7S9ZUSiRoAQNDHg3e4H ixRdM7frPVE86iJS55OcxDr1Ni46G3oTbajImW66MJk8QwKciNd/OpfcTDT/uKE/DwfP iWQwyphMLfMEebeRIXt2Y/93ob+DJOWrP0TQ3pjVVypzLz3X0dWKl7HyOuG2UDNR3oIT 9AWA== X-Gm-Message-State: AOAM531WiEWrRZdmirlQHyI+eiZT3nzixDSPplLgEz7fWpu0wbPTegtm STbICQFGKU8NdQiW16g/qUJ1ip7uFCY= X-Received: by 2002:ac8:45c3:: with SMTP id e3mr5903192qto.149.1596820050230; Fri, 07 Aug 2020 10:07:30 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:cad3:ffff:feb3:bd59]) by smtp.gmail.com with ESMTPSA id w18sm8559905qtk.1.2020.08.07.10.07.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 10:07:29 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , Davidlohr Bueso , Jonathan Corbet , Josh Triplett , Lai Jiangshan , linux-doc@vger.kernel.org, Mathieu Desnoyers , Mauro Carvalho Chehab , neeraju@codeaurora.org, "Paul E. McKenney" , peterz@infradead.org, Randy Dunlap , rcu@vger.kernel.org, Steven Rostedt , tglx@linutronix.de, vineethrp@gmail.com Subject: [PATCH v4 2/5] rcu/tree: Clarify comments about FQS loop reporting quiescent states Date: Fri, 7 Aug 2020 13:07:19 -0400 Message-Id: <20200807170722.2897328-3-joel@joelfernandes.org> X-Mailer: git-send-email 2.28.0.236.gb10cc79966-goog In-Reply-To: <20200807170722.2897328-1-joel@joelfernandes.org> References: <20200807170722.2897328-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At least since v4.19, the FQS loop no longer reports quiescent states for offline CPUs unless it is an emergency. This commit therefore fixes the comment in rcu_gp_init() to match the current code. Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/tree.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index a49fa3b60faa..2fb66cdbfa25 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -1701,9 +1701,11 @@ static bool rcu_gp_init(void) /* * Apply per-leaf buffered online and offline operations to the - * rcu_node tree. Note that this new grace period need not wait - * for subsequent online CPUs, and that quiescent-state forcing - * will handle subsequent offline CPUs. + * rcu_node tree. Note that this new grace period need not wait for + * subsequent online CPUs, and that RCU hooks in the CPU offlining + * path, when combined with checks in this function, will handle CPUs + * that are currently going offline or that go offline later. Refer to + * RCU's Requirements documentation about hotplug requirements as well. */ rcu_state.gp_state = RCU_GP_ONOFF; rcu_for_each_leaf_node(rnp) { -- 2.28.0.236.gb10cc79966-goog