From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751354AbdEBRBj (ORCPT ); Tue, 2 May 2017 13:01:39 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53347 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbdEBRBh (ORCPT ); Tue, 2 May 2017 13:01:37 -0400 Date: Tue, 2 May 2017 10:01:28 -0700 From: "Paul E. McKenney" To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, bobby.prani@gmail.com Subject: Re: [PATCH tip/core/rcu 0/3] Open-code trivial rcu_cblist accessors Reply-To: paulmck@linux.vnet.ibm.com References: <20170502162114.GA12193@linux.vnet.ibm.com> <20170502164710.ayw3rx7vkuoxfwf6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170502164710.ayw3rx7vkuoxfwf6@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17050217-0040-0000-0000-0000032E58CD X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007012; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000208; SDB=6.00855263; UDB=6.00423262; IPR=6.00634425; BA=6.00005322; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015271; XFM=3.00000014; UTC=2017-05-02 17:01:32 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17050217-0041-0000-0000-0000072278D7 Message-Id: <20170502170128.GH3956@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-02_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705020094 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 02, 2017 at 06:47:10PM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > Hello! > > > > And this series open-codes trivial rcu_cblist structure accessors: > > > > 1. Open-code rcu_cblist_empty(p) as !p->head. > > > > 2. Open-code rcu_cblist_n_cbs(p) as p->len. > > > > 3. Open-code rcu_cblist_n_lazy_cbs(p) as p->len_lazy. > > > > > > Thanx, Paul > > > > ------------------------------------------------------------------------ > > > > rcu_segcblist.h | 20 +------------------- > > tree.c | 20 +++++++++----------- > > tree_plugin.h | 8 ++++---- > > tree_trace.c | 4 ++-- > > 4 files changed, 16 insertions(+), 36 deletions(-) > > Ok, these all look good to me. Whew! ;-) Thanx, Paul