Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp830233ybg; Fri, 12 Jun 2020 16:19:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbL5GtiPQl3tqc9i9v9dwZPMJJTwwXj7GCJWJIKtgh+IiVOv5CM1jnGa6Q/xx03gie7G/I X-Received: by 2002:aa7:c6c4:: with SMTP id b4mr14442144eds.210.1592003994227; Fri, 12 Jun 2020 16:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592003994; cv=none; d=google.com; s=arc-20160816; b=xeofZdNr7d/lBSCPMqOssxQ1iKSoqPzhQh8SwA5PtL1yf851az5+gl4QbFWXFcsnVD rX15RWyrg1PX7JVC6U51LDvZWHv8Ld4GzmjISzJYnbFq4InlVtWrrHX73aQcsBBx8ygz vU1GWDpp6Mg3CDx2RRzSKOaPDQvmANLKNP7j3edODjPsTgNY1ZTv/X6M5vESnafEpo+I JdUjSaDpORmhxKfcS/3zitn20xyIgzLhfruR//bwGXpPXLNvbbkmch7qVRvlj0/2nu44 UgOq9ujMPw8oQWW5PlulLNYuw/AH1/rrTEsYjhGHucBb0zy3/5sZsVNE1slaLu88wnoz EOCg== 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=Ru2IyUZA+Km9Suso1RTL1riPiKleaOZKzQ3z+vz/0f0=; b=rqJFJNOajuXTwuqPwepkaFb44plVlQsRasSB4aFuCAhVZrYeh9ubpRsbu/TauSy0Wv 5MOnSZoLOHr+TKxPv5VfdPoOMcqicejO1BY8rmwAvXq0EISHZB0esLuMW5VXaWilKg5I Os0nL5vcrPmpdvYKMFCDmFM8UYjbA/3Tl6hnv/l8YNOVsDCOicAuHYTHDngna9+g0THj piFFKefVVu61vX5yCjOlZmh7y5fhR0r758+yUVmnXHUI8p+Ss6tIKk0WNgBMAgINesHL QKKXXga8tw7Txu4KD4is7St1TSiETTTSTExW6jR/kFtmGQkTYnll0b+FXPBiY0mla9dM Yh8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a1cPM1dd; 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 qp19si4301832ejb.142.2020.06.12.16.19.32; Fri, 12 Jun 2020 16:19:54 -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=a1cPM1dd; 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 S1726445AbgFLXRG (ORCPT + 99 others); Fri, 12 Jun 2020 19:17:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:41258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgFLXRF (ORCPT ); Fri, 12 Jun 2020 19:17:05 -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 3F2F8206D7; Fri, 12 Jun 2020 23:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592003825; bh=egIaeDvlLClgROPOhXowlWDstwIaYaP7fH8KEmN6qKM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=a1cPM1dd4ZdQempC/TazcQVi2A2B7PfWLLPfxCXhnasKFVq+KwEuAOtinEKa141J8 Mw7IHEK6LS3cPIRwnclmaA350Oum8Tgyc5uR3BnGkgJrFW0tKuBLSRPEsmez7ibiy2 VOglXxEXEVXamOkKT2RUHeFMXDrUDFBMGCsKh0Cc= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 26BF43522658; Fri, 12 Jun 2020 16:17:05 -0700 (PDT) Date: Fri, 12 Jun 2020 16:17:05 -0700 From: "Paul E. McKenney" To: Wei Yang Cc: Wei Yang , 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: <20200612231705.GO4455@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> <20200612141248.GK4455@paulmck-ThinkPad-P72> <20200612221025.7ry7wffycoa7pned@master> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200612221025.7ry7wffycoa7pned@master> 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:10:25PM +0000, Wei Yang wrote: > On Fri, Jun 12, 2020 at 07:12:48AM -0700, Paul E. McKenney wrote: > >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? > > The reason is someone has already fixed this :-) That would explain it! ;-) Thanx, Paul > >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) > >> > > -- > Wei Yang > Help you, Help me