Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2073180ybg; Thu, 30 Jul 2020 09:38:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweP+d+9FYm+tRPf1OBApwmICdPbtFeHlMSCGawV89PEONPsepiD2bGNwUcH3iXGe6ZCmHd X-Received: by 2002:a17:906:23e9:: with SMTP id j9mr3343345ejg.107.1596127129505; Thu, 30 Jul 2020 09:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596127129; cv=none; d=google.com; s=arc-20160816; b=lsRdm9yUvhShqNZLR46zIqjL+rmQqzA+NN3TsnUQIFZhd0Y63k7235XUcFvRbcbRqi lasiZ/5CfDEW94psExsOTNTXdHi/WbugVpzP8evfuiEYKL6gjst5UOCdLhS6NhKu0lp5 AXa4sIg0KVO/vcck2Gqtd8+ZFQbck6MIQ5sLLHC0nszZ9PL/5jLBGB2+IsVIif/J/DWr lePT2PHTt0eFrnG9KfnjbR9J/e3G0oMQybjZXxmybOoeZqoB5wHPsQ+a5ayKO6pGHm06 7g28o1CiW1e9cKcuhMqMVBrO5NLSCEo2lu/+f6E4OAMsOQfTL4VHwSvXzTpB+Ik31IXH /Rgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=wkuV0r2SJlOZb1cAJWn6t3v7rWKIxLJMzRNWMCDsQCA=; b=rdIaB4MsvFC2MNTep/D0j5rQZ6mEbZ2YAO9fhQyciGIn2XBMGvNORspv8d4EUwYyKV Xa2J2O55RWFPnNZyii/CPQXCJu08iMBiHslYZ4VsgpoJ1PndZ8lBHi1dNHQ4/5enQJch LcexCu/BnOnJOPVq6SoHCDvqvidm7D9DKEpr6Sz+fhoEPUk6PS4zr7ovClp7qpWCC61U CFZCMuQCKDaGBRlS7Er8R08fU61npB7TtHdOIoRrzGiaepdgOfz31kR/uTR6MzQQ/Fjh hGzrDySrIkQ9NSTXeuzLRQ3CJLXQL4k87riyKMEwJo8pIdehDI9g9EKqgDzRtk1usgnQ xrEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ohrm45PF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si3434767ejc.239.2020.07.30.09.38.27; Thu, 30 Jul 2020 09:38:49 -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=@kernel.org header.s=default header.b=Ohrm45PF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729962AbgG3QfV (ORCPT + 99 others); Thu, 30 Jul 2020 12:35:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:51230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727072AbgG3QfV (ORCPT ); Thu, 30 Jul 2020 12:35:21 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.45.173.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8CE6120838; Thu, 30 Jul 2020 16:35:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596126920; bh=hNBBVsAK7K6IcrJd08DZpbBqe4GepnxNtHeJL5JztiE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Ohrm45PFR1lVtNFaZNbS4QemNQYgYgOGBMmEUSZTPR8FaiM9lcm/ORDHZHKJCtiYO siGSMfGsHaCPcXa/LIXzxV66y6kzjeBdFnJZ+2IvC/y1olSo26XgDHjjcnEeost/nK TbQze0WFlxxA519abjLTyOIUTqhVkn/y/C3MeCmU= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 6669D3520751; Thu, 30 Jul 2020 09:35:20 -0700 (PDT) Date: Thu, 30 Jul 2020 09:35:20 -0700 From: "Paul E. McKenney" To: Joel Fernandes Cc: LKML , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , Neeraj Upadhyay , rcu , Steven Rostedt Subject: Re: [PATCH 2/2] rcu/tree: Clarify comments about FQS loop reporting quiescent states Message-ID: <20200730163520.GA9247@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200730030221.705255-1-joel@joelfernandes.org> <20200730030221.705255-2-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 11:25:19PM -0400, Joel Fernandes wrote: > On Wed, Jul 29, 2020 at 11:02 PM Joel Fernandes (Google) > wrote: > > > > At least since v4.19, the FQS loop no longer reports quiescent states > > I meant here, "FQS loop no longer reports quiescent states for offline CPUs." > > Sorry, You did have me going there for a bit. ;-) No period (".") at the end though, unless you fix up the following to start a new sentence. > > unless it is a dire situation where an offlined CPU failed to report > > a quiescent state. Let us clarify the comment in rcu_gp_init() inorder > > to keep the comment current. How about the following for this last sentence? "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 | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > > index 1e51962b565b..929568ff5989 100644 > > --- a/kernel/rcu/tree.c > > +++ b/kernel/rcu/tree.c > > @@ -1701,8 +1701,8 @@ 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 > > + * rcu_node tree. Note that this new grace period need not wait for > > + * subsequent online CPUs, and that RCU hooks in CPU offlining path > > * will handle subsequent offline CPUs. How about something like this? ... Note that this new grace period ned 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 and that go offline later. Thanx, Paul > > */ > > rcu_state.gp_state = RCU_GP_ONOFF; > > -- > > 2.28.0.rc0.142.g3c755180ce-goog > >