Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp120050ybg; Thu, 11 Jun 2020 19:10:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMVeshUQ4I6UFG2xBomUCF2+d0dJgykFDQ4S7/7lRncl3Cnxb/QWzBQWkoyQVknfpHuPBv X-Received: by 2002:aa7:da42:: with SMTP id w2mr9430766eds.176.1591927836856; Thu, 11 Jun 2020 19:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591927836; cv=none; d=google.com; s=arc-20160816; b=oJgNr8X9wouommw1kpILW0ROxgkP1sqSSjhCVU9lX46P1CmvRhtaa0oRYOAaTQRnIJ 07UPsnwW5044cBQ08eRojREN1icbFF/kh/BMcji5VhyiSBScenJRoOHlAq5OzpJZbsyl Mrhb91hMC428k9GjByjemm1FANVGlMdUscFGl9hb6/OqXCiBORL1FvlJ6f6XC/YXgUlC FwRo2eNs+g5zDaHqlnBAIlAH54CiwHBtkO2DLk50q5XB+TjHtdHDBl27YcsJONnymV2p yTZfi0xQnXokugvinfoVqQKsLc/1CZf4jmTmLL9xBvafblD2aYGnacnzT1YG0ZsIOPRk LMQw== 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; bh=QcHfpPhL3NYkIb3W0UP/vnS+4fkN0ng4g/aT6evX8F8=; b=MZq7wiB76m6gqvJn89Af1Km8VZTOd4k3dIVXagR9kMUoArb+CT9/5sElabeE5Xl4Bn zdtQn/KfcCuSZCRqS8O/AjfZoHlJdwlRUoqNUnfdZ9rTa19nnYwCd0z4PE6FKUwJvAxq +bl3LrAtx8HIpX6sJIHNBLClgVZrn1yiQHzeOSDr+cylu8o4VgNu/E6JRoEVrd2go+to UjbH7JCmtrQkXg+x7AfKCq5+ZpbJe3i1+okIj2mBiN30N30n7Ag+4Y134So2rqzBZfNL 7tp8bnVlMwrCW20Q/0N3LOqkjZvgeGw0TCPr9x4NW/nQAfU8pscKojCDBoMjHsjf3scs H/rQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si3357584ejb.343.2020.06.11.19.10.14; Thu, 11 Jun 2020 19:10:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726517AbgFLCIZ (ORCPT + 99 others); Thu, 11 Jun 2020 22:08:25 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:46982 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbgFLCIW (ORCPT ); Thu, 11 Jun 2020 22:08:22 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07425;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0U.J3VsV_1591927700; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U.J3VsV_1591927700) by smtp.aliyun-inc.com(127.0.0.1); Fri, 12 Jun 2020 10:08:20 +0800 From: Wei Yang To: paulmck@kernel.org, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, trivial@kernel.org Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 4/4] rcu: use gp_seq instead of rcu_gp_seq for consistency Date: Fri, 12 Jun 2020 10:07:55 +0800 Message-Id: <20200612020755.50526-5-richard.weiyang@linux.alibaba.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20200612020755.50526-1-richard.weiyang@linux.alibaba.com> References: <20200612020755.50526-1-richard.weiyang@linux.alibaba.com> 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 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 --- 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)