Received: by 10.192.245.15 with SMTP id i15csp964535imn; Sat, 10 Mar 2018 15:37:53 -0800 (PST) X-Google-Smtp-Source: AG47ELth1JVsJ+IjVzJ11OPuhyV4jDvNWZ+o4RFj11f1qTrNBQOkR6C+jaqdUk4ckY52hCEuovlf X-Received: by 10.101.82.10 with SMTP id o10mr2691189pgp.271.1520725073891; Sat, 10 Mar 2018 15:37:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520725073; cv=none; d=google.com; s=arc-20160816; b=loq19FQicRkRqavhlUm3a9tAUlkxxU8iQ+DdDSZ6xy2RxHMnQjmAPUfzKBFo5qQeTR 0AcPDPVbKpRGLyvfXlAGMyF7ouXSMXRLLPsjwcIAzyS5IFHG0Hrayljz0gzHO+ylWFju zC5kbXOtr3Xav+9xIAVloid7fmQVceXCatOXqELOASGw6MBxkQjBcT4MHbRtxmzZyjGT XHRk3lZjx/IrGPHOAVV0r+4TVjnJdWZotJCKms/AHTIkOomnuhkeqMx7FWBM2teY1u3c u1qvOhj33nbSUYCFMOB2dtlzIP0FKfKQKxwXnXZMF+ucLvxGJYATF+EKj1VhilMEAQqY rVUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=sGgr1mUxjQ32Q/jpSE5CkBv+/Mx2xkiQREqaxCSx52M=; b=IfFUgCiV8T+ZjJAkCxeulAckGh4MMbekhPiXHGxEqukJilv/XRdlB7BfXGgblRA1KC NTs627WL1w9I01cW5zO44XfcTEC8zveCF6ueoNfux+FqKE7/XeI0P7YfBBRn0A5dEpGQ 3cKmqhhJINYKOnsx19o+BkLZoUmIYimRu4LqSLUpYi5ankkTXK6VA0Mpz6l43mOobKX0 bKPl6UV/gTCRDVVTAAiqgegAzg7aXxVOzy/QS/Rbu71MyZTQzvKDHvOGD4fZ8hcuoeqV lmIyfxLeCdk2t3mpzVB0l3cry4GjvY8oyOxQt+wRAuzEqsxW5HpAkvN72JFm9Vrj6eTa eMAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QUmKkZ1S; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si2906214pgs.457.2018.03.10.15.37.37; Sat, 10 Mar 2018 15:37:53 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QUmKkZ1S; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751216AbeCJXgp (ORCPT + 99 others); Sat, 10 Mar 2018 18:36:45 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35697 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751135AbeCJXgo (ORCPT ); Sat, 10 Mar 2018 18:36:44 -0500 Received: by mail-wr0-f195.google.com with SMTP id n12so1105320wra.2 for ; Sat, 10 Mar 2018 15:36:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sGgr1mUxjQ32Q/jpSE5CkBv+/Mx2xkiQREqaxCSx52M=; b=QUmKkZ1StAmQegEM9ONsFXWxW1UethUeZtv5xyKldDrlyuedYPje5xRO2KKcJyS4Fv FeKZctKqYJTBDu+LzE5aXvXz1BRDMXojKV7OiGzDnZmsGrhCzW7/hgXVJlbs9mQG5Kvp Z3yTmyBgvwmI28o0UE0Iq3RTf4nWHhyzac2GqntEjRqCC87mKUA1BUqun5w4uzumKfsG bRQly8VvU86XDtoBykaLYYct/HmMwKa/MXjocqRRZI3l+/6GI8tFNRcmL0ZRWu2tC5hG fTU3Q1q1IyOkoknnlTBdoOUwozbTEfvkNxBytM7RxBHSfIJC95GFsJ6+CVeo4AElk0QN ldhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sGgr1mUxjQ32Q/jpSE5CkBv+/Mx2xkiQREqaxCSx52M=; b=MvK5AoMPzM1lQnHLeZ2FJPi0nV1jz1mw+mBv2Lbmm6TRASOI04b8+qTAK6gLwm+62m EQvOvIMeSyLe7o92boIMzrsMfQhpWXQpqKc4PP0OsnqJKFmLawWWf4dLMosd11lNRiBK XBCFVcqKW9jJlXQveVoqDSw8KqsWBt3V9RpwIipIFpJnMvTHwtzX2KTU94ECKYkSOAak 2RCYywWnIWAoyfuTBygBLtZaXcOJDRp+jvnVmX1nsDmtf08d28kw34SbwzqO0RcVjY9A 2zFSSD6EnEhWceZ4el+r0yywnN2ch4qcL6icUMrfstyJU9G2b5Q0W4dv5FUyFFki2mIO mbiQ== X-Gm-Message-State: AElRT7FDoJrCoStrjr4VdqFE3/dXf0eUW0eJzC91eWtjYk1X3uh2I4s1 yK6nqrVPChLRCiX9cedFDaY= X-Received: by 10.223.176.151 with SMTP id i23mr2674989wra.234.1520725002863; Sat, 10 Mar 2018 15:36:42 -0800 (PST) Received: from andrea ([94.230.152.15]) by smtp.gmail.com with ESMTPSA id g52sm7131989wra.20.2018.03.10.15.36.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Mar 2018 15:36:42 -0800 (PST) Date: Sun, 11 Mar 2018 00:36:36 +0100 From: Andrea Parri To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Linus Torvalds , Tejun Heo , Jann Horn , Benjamin LaHaise , Al Viro , Thomas Gleixner , Peter Zijlstra Subject: Re: Simplifying our RCU models Message-ID: <20180310233636.GA3602@andrea> References: <20180305161446.GQ3918@linux.vnet.ibm.com> <20180306084738.tcs4ggbby77phlbh@gmail.com> <20180306203906.GA3918@linux.vnet.ibm.com> <20180307155444.GA10367@linux.vnet.ibm.com> <20180308211950.GA3202@andrea> <20180309005145.GZ3918@linux.vnet.ibm.com> <20180309095520.GA5079@andrea> <20180310160409.GF3918@linux.vnet.ibm.com> <20180310162946.GA7548@andrea> <20180310224726.GI3918@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180310224726.GI3918@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 10, 2018 at 02:47:26PM -0800, Paul E. McKenney wrote: > On Sat, Mar 10, 2018 at 05:29:46PM +0100, Andrea Parri wrote: > > On Sat, Mar 10, 2018 at 08:04:09AM -0800, Paul E. McKenney wrote: > > > On Fri, Mar 09, 2018 at 10:55:20AM +0100, Andrea Parri wrote: > > > > On Thu, Mar 08, 2018 at 04:51:45PM -0800, Paul E. McKenney wrote: > > > > > [ Dropping CC ] > > > > > > > > [...] > > > > > > > > > > > Ah, and any thoughts on how best to get feedback from the various people > > > > > > > who would need to reprogram their fingers? Or is everyone already on > > > > > > > board with changing these various names? > > > > > > > > > > > > Experienced should get there in a week (gcc help); newbies would (have to) > > > > > > rely on either on _properly updated_ documentation or weeks/months of code > > > > > > paging; scripts do the renaming. What am I missing? > > > > > > > > > > Linus's reply to my email? ;-) > > > > > > > > > > More seriously, people who use RCU only occasionally would likely > > > > > have more difficulty adjusting. "What the heck is the new name of > > > > > synchronize_rcu()??? Oh forget it, I will just use a lock. My system > > > > > isn't all that large anyway!!!" > > > > > > > > I did miss this group of people. Thanks, > > > > > > I should hasten to add that we have changed the names of RCU-related APIs > > > before, including synchronize_kernel() -> synchronize_sched() back in > > > the day and SLAB_DESTROY_BY_RCU -> SLAB_TYPESAFE_BY_RCU more recently. > > > There was some discussion around this last change, and one of the things > > > we did to help was to add big comments relating the old and new names. > > > That way, someone grepping for the old name can easily find the new name. > > > > > > But it does cause some churn. So name changes can be a good thing, > > > but we don't undertake them lightly. That said, it has been more than > > > a decades since the last name change in the core RCU API, so it is not > > > too early to consider it. As Linus says, however, we won't be changing > > > just for change's sake. ;-) > > > > Absolutely! > > > > And thank you for these remarks (you know, certainly, I was not properly > > "watching" RCU commits a decade ago or so... ;). But maybe other people > > can find these remarks interesting: please feel free to forward to LKML. > > I should probasbly also add that the name change from SLAB_DESTROY_BY_RCU to > SLAB_TYPESAFE_BY_RCU was motivated by several groups misinterpreting the > old name, and thus spending months each chasing weird race conditions... [ Bringing back CC ] Thanks, Andrea > > Thanx, Paul >