From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935299AbcKNSaK (ORCPT ); Mon, 14 Nov 2016 13:30:10 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:42173 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933225AbcKNSaI (ORCPT ); Mon, 14 Nov 2016 13:30:08 -0500 Date: Mon, 14 Nov 2016 10:30:00 -0800 From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@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, dvhart@linux.intel.com, fweisbec@gmail.com, oleg@redhat.com, bobby.prani@gmail.com, luto@amacapital.net Subject: [PATCH RFC tip/core/rcu 0/5] Consolidate RCU dyntick-idle counter manipulation Reply-To: paulmck@linux.vnet.ibm.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16111418-0012-0000-0000-000011241BD8 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006077; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00780633; UDB=6.00376455; IPR=6.00558134; BA=6.00004878; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013322; XFM=3.00000011; UTC=2016-11-14 18:30:07 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16111418-0013-0000-0000-0000472AACA6 Message-Id: <20161114183000.GA27133@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-14_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611140367 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! The first four patches of this series consolidate RCU's dyntick-idle counter manipulations into a set of access functions. These are currently queued for 4.12 (merge window after next). The last patch in this series uses the bottom bit of RCU's dyntick-idle counter to track a CPU's state, and has been proposed to track the need to flush the local CPU's TLB. This last patch will not be pushed until it has a use. The patches are as follows: 1. Abstract the dynticks momentary-idle operation. 2. Abstract the dynticks snapshot operation. 3. Abstract dynticks extended quiescent state enter/exit operations. 4. Abstract extended quiescent state determination. 5. Maintain special bits at bottom of ->dynticks counter, which might be used to track a given CPU's need to flush TLBs. Thanx, Paul ------------------------------------------------------------------------ include/linux/rcutiny.h | 11 + kernel/rcu/tree.c | 263 ++++++++++++++++++++++++++++++++++------------- kernel/rcu/tree.h | 3 kernel/rcu/tree_exp.h | 12 -- kernel/rcu/tree_plugin.h | 2 kernel/rcu/tree_trace.c | 2 6 files changed, 216 insertions(+), 77 deletions(-)