Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp503706ybg; Fri, 12 Jun 2020 07:14:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1Kx3I40RztHduZeWOE+IHH6EsfujYpenohPuWISsD1uVMwdY74WCZxdXKDZbaN5Bb2gjr X-Received: by 2002:aa7:da4f:: with SMTP id w15mr11533813eds.384.1591971299296; Fri, 12 Jun 2020 07:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591971299; cv=none; d=google.com; s=arc-20160816; b=ni9LEUpAWTMLv9JXMz+ADvwjgiRjePtTWeyCBpo9CAqtLo5+28D8gIj4RBdZtZFw/y Y0GBcmjDDxcCOxmeM0cSuIpmZMNtS7LTC/ImoO4edGrV8J0cO/smmSl/QZ2iwQ+WGw71 KHYvdCl1In53id6K4nvlRCC1hi3B21Ya9JEnJpNHynxHRMRIRQ01FAW1uozzhYhzXIvg QD+bpppY6jF8vFJuXb1i5iKIpku8/PrDZSj6LEwCU9vsxt19TOpMMi3Y8CKr/IdoDyCV MlnXralLu0id9jASxMouhbVxnKtJDssRmjW7TGBgvuJ1ezvwus4P1CcHh2bXAUL0Mnzp xqOA== 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=AMvBSIqAUcgWHDAfb+wqA5v8Mlp43QmGxrLashvxMzg=; b=BdFhWaKXyFmerv6um2g4ygy50jt3D/InSYLnKQncBAS/iSGut2wXfRIQuHp+ckQ/Vu 3DGWhaLaSndTzWEL5CNvmEdqKZ7rCzWEyuvoM/CHs/xA+4Ovn4+A4NwJpl3bbEjtsRe4 rPCmBl8ybAlbB1R6Ej8dPYFVNrEOFe2ybVmn5qXEqC+RxvODq+YJfIkv8IEByKlf18TE 1kE+d6DD5cLmJ7BmuztnkLFvVoFxxBlAgFKzS6ZJzo+9pexmJJxXjKzHvYtaMCD8Rs0K HkYMVeh7a4m0Y39r3Myvu+SLtfTFaxUYT588x1IHI90r2U60dZZUeZB9/tVDcerWJUuI TKQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AVWvWB9g; 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 d10si3532868eds.465.2020.06.12.07.14.37; Fri, 12 Jun 2020 07:14:59 -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=AVWvWB9g; 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 S1726451AbgFLOMt (ORCPT + 99 others); Fri, 12 Jun 2020 10:12:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:37832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgFLOMt (ORCPT ); Fri, 12 Jun 2020 10:12:49 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (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 9F0E12074B; Fri, 12 Jun 2020 14:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591971168; bh=K9mmWg+RlhSzEFgOR5fzEuEol7HVAlTxtf93HYgh604=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=AVWvWB9g9k+/rFhJefunRgtgjW5ow5mKi1qTflEXkM9vhNW9klyoEvr6KjXYTOZe3 s2Qr8urrS0qqfqGfcKm7J6vhCeg+pEmCpuMAki0ij1PVOrEKlnAGrkT53J63HiAUlV kcPHQ+oAu/60bsUsv7Cef7icshuHllFhyTBH91qc= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 7FC353521A8D; Fri, 12 Jun 2020 07:12:48 -0700 (PDT) Date: Fri, 12 Jun 2020 07:12:48 -0700 From: "Paul E. McKenney" To: Wei Yang Cc: josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, trivial@kernel.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] rcu: use gp_seq instead of rcu_gp_seq for consistency Message-ID: <20200612141248.GK4455@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200612020755.50526-1-richard.weiyang@linux.alibaba.com> <20200612020755.50526-5-richard.weiyang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200612020755.50526-5-richard.weiyang@linux.alibaba.com> 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 Fri, Jun 12, 2020 at 10:07:55AM +0800, Wei Yang wrote: > Commit de30ad512a66 ("rcu: Introduce grace-period sequence numbers") > introduce gp_seq in rcu_state/rcu_node/rcu_data. And this field in last > two structure track the one in first. > > While the comment use rcu_gp_seq which is a little misleading for > audience. Let's use the exact name gp_seq for consistency. > > Signed-off-by: Wei Yang I applied and pushed the others -- good eyes, and thank you! This one does not apply. Could you please forward-port it to the "dev" branch of -rcu? git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git Thanx, Paul > --- > kernel/rcu/tree.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h > index 512829eed545..3356842bc185 100644 > --- a/kernel/rcu/tree.h > +++ b/kernel/rcu/tree.h > @@ -41,7 +41,7 @@ struct rcu_node { > raw_spinlock_t __private lock; /* Root rcu_node's lock protects */ > /* some rcu_state fields as well as */ > /* following. */ > - unsigned long gp_seq; /* Track rsp->rcu_gp_seq. */ > + unsigned long gp_seq; /* Track rsp->gp_seq. */ > unsigned long gp_seq_needed; /* Track furthest future GP request. */ > unsigned long completedqs; /* All QSes done for this node. */ > unsigned long qsmask; /* CPUs or groups that need to switch in */ > @@ -149,7 +149,7 @@ union rcu_noqs { > /* Per-CPU data for read-copy update. */ > struct rcu_data { > /* 1) quiescent-state and grace-period handling : */ > - unsigned long gp_seq; /* Track rsp->rcu_gp_seq counter. */ > + unsigned long gp_seq; /* Track rsp->gp_seq. */ > unsigned long gp_seq_needed; /* Track furthest future GP request. */ > union rcu_noqs cpu_no_qs; /* No QSes yet for this CPU. */ > bool core_needs_qs; /* Core waits for quiesc state. */ > -- > 2.20.1 (Apple Git-117) >