Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4626075imu; Mon, 12 Nov 2018 14:17:57 -0800 (PST) X-Google-Smtp-Source: AJdET5do2SQNBKgH0v5ISmz9i1mi9o0o2G1Sbl1H6tSdORjWHFbpNQrFNPCEXdnvVOQ6uiGYxfd2 X-Received: by 2002:a17:902:7402:: with SMTP id g2mr2544071pll.198.1542061077270; Mon, 12 Nov 2018 14:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542061077; cv=none; d=google.com; s=arc-20160816; b=b53Et81M55UMrNH86Ukw+feNUViYLbb/pYw96tnYlKfE9iCPVFqwlTZOKJxXHWUKBM 4J4+yWHCDEIw9bXyUNcXIgySPWK5JcvmhHhvfTv6HhGbIDmljWaN4WLYbOwPj/jNS92d Bu7bMW83djR/Dz3Y18k+h92JHEO/oy55NWJBKoOlVPAW8lIdJXqJh9vJVUfW1HCKS9xS tzTYqsEimCrIQdQMJEEuQjvQ7qMpOOPPLN33NRPU5EK+WitVIDyFVxdmAsIPHHymk/0Z puLxkcoMKtQp6JQXLZlBasf5O74CYVYNvi1dddZD0/hZiR4V97tcJDuzxXmvc5eCJ6El yfoQ== 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; bh=v2Kt5HF/YQc92axO0rA8lR8Z7e27LZ9nMvd7hqDpJxc=; b=bS4WFiRFeciECR00nu0qRo4x93V9s8olxAoOLOMCL/STLLpyd6hK/SLZpohFi9/iB8 SIDZswXEO4aLaO7dSdXjb1ijbANEaMqRdt8onXpW2LgxaSlDbaRWPp0R/CASrCJEM/C8 LrgP3JSt2zU+CYf6QCi98ljHLCaOHT0TB3/rOZbKbN7JttUrkaBeMMzHokd3Ee5+EiJ5 V1A6pFmD4Ve0B18KYP1EOVt9yW/0Q5MdXg5R7WFDRpzsHCsG0R6bE+AoPVP1nOxvmuW3 f2aDEPPvyjOSKHuUBqntnYs44nRVjbDOWsmdrj0VQ57LRLtmJrWi+pZFcL1N5lQYrOP9 0C9g== 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 v9si9805880pgt.464.2018.11.12.14.17.40; Mon, 12 Nov 2018 14:17:57 -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 S1730683AbeKMILx (ORCPT + 99 others); Tue, 13 Nov 2018 03:11:53 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:47628 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbeKMILx (ORCPT ); Tue, 13 Nov 2018 03:11:53 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wACMDKkh142704 for ; Mon, 12 Nov 2018 17:16:45 -0500 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2nqg31w74w-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 12 Nov 2018 17:16:44 -0500 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Nov 2018 22:16:43 -0000 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 12 Nov 2018 22:16:39 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wACMGcaf46596268 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Nov 2018 22:16:38 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 201B5B206B; Mon, 12 Nov 2018 22:16:38 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2B84AB2064; Mon, 12 Nov 2018 22:16:35 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.181.27]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 12 Nov 2018 22:16:35 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 88F4716C5DA8; Mon, 12 Nov 2018 14:16:35 -0800 (PST) Date: Mon, 12 Nov 2018 14:16:35 -0800 From: "Paul E. McKenney" To: Sasha Levin Cc: Mathieu Desnoyers , linux-kernel , Ingo Molnar , Lai Jiangshan , dipankar , Andrew Morton , Josh Triplett , Thomas Gleixner , Peter Zijlstra , rostedt , David Howells , Eric Dumazet , fweisbec , Oleg Nesterov , "Joel Fernandes, Google" , kernel-team Subject: Re: [PATCH tip/core/rcu 0/41] More RCU flavor consolidation cleanup for v4.21/v5.0 Reply-To: paulmck@linux.ibm.com References: <20181111194104.GA4787@linux.ibm.com> <2113574714.3779.1542031670315.JavaMail.zimbra@efficios.com> <20181112160137.GI4170@linux.ibm.com> <20181112214023.GA64029@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181112214023.GA64029@sasha-vm> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18111222-0072-0000-0000-000003C79C1C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010037; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01116542; UDB=6.00577118; IPR=6.00896650; MB=3.00024134; MTD=3.00000008; XFM=3.00000015; UTC=2018-11-12 22:16:43 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18111222-0073-0000-0000-00004A1645B1 Message-Id: <20181112221635.GV4170@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-12_14:,, 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 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811120190 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 12, 2018 at 04:40:23PM -0500, Sasha Levin wrote: > On Mon, Nov 12, 2018 at 08:01:37AM -0800, Paul E. McKenney wrote: > >On Mon, Nov 12, 2018 at 09:07:50AM -0500, Mathieu Desnoyers wrote: > >>----- On Nov 11, 2018, at 2:41 PM, paulmck paulmck@linux.ibm.com wrote: > >> > >>> Hello! > >>> > >>> This series does additional cleanup for the RCU flavor consolidation, > >>> focusing primarily on uses of old API members, for example, so that > >>> call_rcu_bh() becomes call_rcu(). There are also a few straggling > >>> internal-to-RCU cleanups. > >>> > >>> 1. Remove unused rcu_state externs, courtesy of Joel Fernandes. > >>> > >>> 2. Fix rcu_{node,data} comments about gp_seq_needed, courtesy of > >>> Joel Fernandes. > >>> > >>> 3. Eliminate synchronize_rcu_mult() and its sole caller. > >>> > >>> 4. Consolidate the RCU update functions invoked by sync.c. > >>> > >>> 5-41. Replace old flavorful RCU API calls with the corresponding > >>> vanilla calls. > >> > >>Hi Paul, > >> > >>Just a heads up: we might want to spell out warnings in very big letters > >>for anyone trying to backport code using RCU from post-4.21 kernels > >>back to older kernels. I fear that newer code will build just fine > >>on older kernels, but will spectacularly fail in hard-to-debug ways at > >>runtime. > >> > >>Renaming synchronize_rcu() and call_rcu() to something that did not > >>exist in prior kernels would prevent that. It may not be as pretty > >>though. > > > >From v4.20 rather than v4.21, but yes. Would it make sense to have Sasha > >automatically flag -stable candidates going back past that boundary that > >contain call_rcu(), synchronize_rcu(), etc.? Adding Sasha on CC, and > >I might be able to touch base with him this week. > > We had a similar issue recently with a vfs change > (https://patchwork.kernel.org/patch/10604339/) leading to potentially > the same results as described above, we took it as is to avoid these > issues in the future, though this is a much smaller change than what's > proposed here. > > We can look into an good way to solve this. While I can alert on > post-4.20 stable tagged patches that touch rcu, do you really want to be > dealing with this for the next 10+ years? It'll also means each of those > patches will need a manual backport. > > Let's talk at Plumbers :) Sounds like a plan! ;-) Thanx, Paul