Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbeAPPbk (ORCPT + 1 other); Tue, 16 Jan 2018 10:31:40 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35538 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751071AbeAPPbi (ORCPT ); Tue, 16 Jan 2018 10:31:38 -0500 Date: Tue, 16 Jan 2018 07:31:39 -0800 From: "Paul E. McKenney" To: "Liu, Changcheng" Cc: Lai Jiangshan , Mathieu Desnoyers , linux-kernel@vger.kernel.org Subject: Re: [PATCH] rcu: remove redundant nxttail index marco define Reply-To: paulmck@linux.vnet.ibm.com References: <20180116090514.GA5706@sofia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180116090514.GA5706@sofia> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18011615-0024-0000-0000-0000031304A8 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008389; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000246; SDB=6.00975893; UDB=6.00494658; IPR=6.00755820; BA=6.00005781; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019072; XFM=3.00000015; UTC=2018-01-16 15:31:33 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18011615-0025-0000-0000-000046A84D59 Message-Id: <20180116153139.GV9671@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-16_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1801160216 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 16, 2018 at 05:05:14PM +0800, Liu, Changcheng wrote: > rcu nxttail has been optimized to be rcu_segcblist. > The index has been defined in linux/rcu_segcblist.h > > Signed-off-by: Liu Changcheng Good eyes! Applied for testing and review. Thanx, Paul > diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h > index 46a5d19..78cb5f3 100644 > --- a/kernel/rcu/tree.h > +++ b/kernel/rcu/tree.h > @@ -185,13 +185,6 @@ union rcu_noqs { > u16 s; /* Set of bits, aggregate OR here. */ > }; > > -/* Index values for nxttail array in struct rcu_data. */ > -#define RCU_DONE_TAIL 0 /* Also RCU_WAIT head. */ > -#define RCU_WAIT_TAIL 1 /* Also RCU_NEXT_READY head. */ > -#define RCU_NEXT_READY_TAIL 2 /* Also RCU_NEXT head. */ > -#define RCU_NEXT_TAIL 3 > -#define RCU_NEXT_SIZE 4 > - > /* Per-CPU data for read-copy update. */ > struct rcu_data { > /* 1) quiescent-state and grace-period handling : */ > -- > 2.7.4 >