Received: by 10.223.185.116 with SMTP id b49csp4289339wrg; Tue, 6 Mar 2018 13:07:18 -0800 (PST) X-Google-Smtp-Source: AG47ELu2snnDVZzHqvJ69Advr4wXZSY89crZDmlOw1VDUR3gO1JQgSm6xiDBdiiS+G7z3U1P8dsc X-Received: by 2002:a17:902:2845:: with SMTP id e63-v6mr17928505plb.389.1520370438155; Tue, 06 Mar 2018 13:07:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520370438; cv=none; d=google.com; s=arc-20160816; b=Q/w5V7TskmkddtT+vZcFF+Q8UG020SqnChWquJ45PuVReH+yk+Yw2IKYjCIk00+r7m gri5D4Xlha+A68TiWD1UhKtIQLetYXNbw8VuyowsL1k3m2i0tuzZExJlSziGEvM4g2/b T1PJqFDBRegPYg75ui9Bm0guZwLGOAMBpBE73ZFcwLzb4ISRXyp7VCH9XqWG4TYS4pIl ifBtFV519MD8H5jHG3IaeLBYZjwy2uQxTRVXnXA8NM9kZbX2+m3zPtB2dzGC0QONyFo5 /T9qgcldItyErMOQU1HHgJHXievk+9FLr+9fV2KUBbQLVhbJkOb+c/ruF/1Y7Bj85c5c jzeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=BsPzc+DotKrlfdkDGsC9aI+ojaBR1OVQUt2sdLR5vTg=; b=g/ANBvvx/ngfOIZMXmASZuUF0kYHAvm/aEe6MqUbP2ujavMk9M4oHjX+2PrEDNRQRF 6zDiZbM4Xcm7VOxseCycte6Z3O96fv8uZpB+ggjom/DNM8aJE8895YOK27n4Jmd5/kPg TZ61ClGluRZC3xmJoEVECLLyluI7eixGGptpohdST2dWmaSl/5bHDoahU4w6cad1keFz GHDKQiyqnwml0MFaQ086x3PitKisUG67X06KFUKSH0VRrNKs2QJfZNf+8iuT0Pjb/mhV c10r0oRG6ubcsAsWted5JCkTPUdLZzj86KSg9zN9pEzRJDrLaGfAV7R5IBbVvEUldV49 ya7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si12650109pfj.306.2018.03.06.13.07.03; Tue, 06 Mar 2018 13:07:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753976AbeCFVGG (ORCPT + 99 others); Tue, 6 Mar 2018 16:06:06 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52022 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753466AbeCFVGF (ORCPT ); Tue, 6 Mar 2018 16:06:05 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w26L62xM097535 for ; Tue, 6 Mar 2018 16:06:04 -0500 Received: from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gj0nqcqgs-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 06 Mar 2018 16:06:03 -0500 Received: from localhost by e12.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 6 Mar 2018 16:05:55 -0500 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 6 Mar 2018 16:05:51 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w26L5oci57213054; Tue, 6 Mar 2018 21:05:50 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C4800B2052; Tue, 6 Mar 2018 17:08:05 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.85.135.94]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 892DDB2046; Tue, 6 Mar 2018 17:08:05 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id A60E016C2AC1; Tue, 6 Mar 2018 13:06:24 -0800 (PST) Date: Tue, 6 Mar 2018 13:06:24 -0800 From: "Paul E. McKenney" To: Ingo Molnar Cc: "Eric W. Biederman" , Linus Torvalds , Tejun Heo , Jann Horn , Benjamin LaHaise , Al Viro , Thomas Gleixner , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: Simplifying our RCU models Reply-To: paulmck@linux.vnet.ibm.com References: <20180305001600.GO3918@linux.vnet.ibm.com> <20180305030949.GP3918@linux.vnet.ibm.com> <20180305082441.4hao2z4dqn2n5on6@gmail.com> <87po4izj67.fsf_-_@xmission.com> <20180305161446.GQ3918@linux.vnet.ibm.com> <20180306084738.tcs4ggbby77phlbh@gmail.com> <20180306090050.zslv7g37dh6a5kpz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180306090050.zslv7g37dh6a5kpz@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18030621-0048-0000-0000-00000245377E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008628; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.00999350; UDB=6.00508301; IPR=6.00778668; MB=3.00019880; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-06 21:05:53 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18030621-0049-0000-0000-000044599FF9 Message-Id: <20180306210624.GB3918@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-06_12:,, 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-1803060226 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2018 at 10:00:50AM +0100, Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > I.e. the new RCU namespace would be something like: > > > > call_rcu => rcu_call_rcu > > typo: rcu_call(). > > > synchronize_rcu => rcu_wait_ > > typo: rcu_wait(). > > Here's the updated table: > > # RCU APIs: > > rcu_read_lock => rcu_read_lock # unchanged > rcu_read_unlock => rcu_read_unlock # unchanged > > call_rcu => rcu_call > call_rcu_bh => rcu_call_bh > call_rcu_sched => rcu_call_sched call_rcu_tasks => rcu_call_tasks ? > synchronize_rcu => rcu_wait > synchronize_rcu_bh => rcu_wait_bh > synchronize_rcu_bh_expedited => rcu_wait_expedited_bh > synchronize_rcu_expedited => rcu_wait_expedited > synchronize_rcu_mult => rcu_wait_mult The consolidation of RCU, RCU-bh, and RCU-sched would eliminate the only use of synchronize_rcu_mult(). Should we simply remove it? > synchronize_rcu_sched => rcu_wait_sched > synchronize_rcu_tasks => rcu_wait_tasks > > get_state_synchronize_rcu => rcu_get_state > cond_synchronize_rcu => rcu_wait_state All of rcu_barrier, rcu_barrier_bh, rcu_barrier_sched, rcu_barrier_tasks, and srcu_barrier remain unchanged, correct? > # SRCU APIs: > > srcu_read_lock => srcu_read_lock # unchanged > srcu_read_unlock => srcu_read_unlock # unchanged > > synchronize_srcu => srcu_wait > synchronize_srcu_expedited => srcu_wait_expedited call_srcu => srcu_call ? And rcu_assign_pointer, rcu_access_pointer(), and rcu_dereference*() remain unchanged, correct? I wouldn't expect RCU's list API to change, but if we are going to change something, this would be the time... On the other hand, the ones you list above are the ones that get used, hence the ones for which the names are most important. That said... The following list is a bit out of date, but is not too far off: https://lwn.net/Articles/609973/ Yeah, I know, causing trouble for myself. ;-) Thanx, Paul