Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4246305imu; Mon, 12 Nov 2018 08:02:55 -0800 (PST) X-Google-Smtp-Source: AJdET5f/nj+1KcGUsZ6yVtb3JI+8jut1oDFYzt9MQJ4JUzFoDT/9qKqjqy2N7P/P7yegeHq6/1Ar X-Received: by 2002:a17:902:8698:: with SMTP id g24-v6mr1472900plo.96.1542038574965; Mon, 12 Nov 2018 08:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542038574; cv=none; d=google.com; s=arc-20160816; b=hT1AqjgUyz3/ut49Btidc1JZL87+WjXsMTi0WB6jX3IyMcY13EfPlep2fxnOEYX9Y1 e9Fap806gG2JxAkwNtC/Ggn6ykHO+38k0XsxHgqX8oEBq0pX1bFcfr9LbgOcvPlQNCGX tLM9pJUoq6WR6SsAqmUDXdjm2dtHOutMEGinhdgbO61yw0pG07pWpQIimteO1dZ3QpJy s+Y+WJRlxXSWavCIBLDheyfDYbPF8/MSrM3RHIf3JFr+DoGZndj9qIIYTIgCl9LA7XMi df/fgLZbcTi9oTfSWh4CqcAbUaYLJ/JUX2wJP7utdBg4tfehwREWNRrft8ns1jx7ukI5 G5yw== 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=ffIhPCdiFwWLz9UVnGP+Q7NX0xfmQjoCxiJYiX3e6ho=; b=DSG8NP5CLG05fgO5ASAtwqZ2SSHdHFZefB4O05EFKnKYefX42JO64iXpHaTC5V4OqN WR02j878bc1NQ/nxbGS4893vh8Wgf1jRss+pglSA6v0InMWyKy9b7oBo2BnjkDYBrQOm n0nQktkgF5tocFrfOtl6KJ77+aGnjmqhxNPWPD/pwD1ZrJ++/bToJctSvEwwwA4HAF3d Pf/JJ/1Dko+RfmX5AmlDl2WyreQ1dJdtMUH0/zB0mtaLjP+QKEqmTDMOEMvTzo9QquDm 0y585E7JAploOGwL3znwRLQOrJr2wtfmGx/cP1bOHoK96SDzfZMfRR3ZJyHzr+myVBFg kF3w== 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 x32-v6si18889394pld.70.2018.11.12.08.02.27; Mon, 12 Nov 2018 08:02:54 -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 S1729979AbeKMBzp (ORCPT + 99 others); Mon, 12 Nov 2018 20:55:45 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:4141 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727976AbeKMBzo (ORCPT ); Mon, 12 Nov 2018 20:55:44 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wACG0xNJ139769 for ; Mon, 12 Nov 2018 11:01:52 -0500 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0b-001b2d01.pphosted.com with ESMTP id 2nqb4651q7-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 12 Nov 2018 11:01:49 -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 16:01:45 -0000 Received: from b01cxnp23034.gho.pok.ibm.com (9.57.198.29) 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 16:01:40 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wACG1dKP28049432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Nov 2018 16:01:39 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4F4F8B2071; Mon, 12 Nov 2018 16:01:38 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 30C73B206B; Mon, 12 Nov 2018 16:01:37 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.198.12]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 12 Nov 2018 16:01:37 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 891E516C5DA0; Mon, 12 Nov 2018 08:01:37 -0800 (PST) Date: Mon, 12 Nov 2018 08:01:37 -0800 From: "Paul E. McKenney" To: Mathieu Desnoyers Cc: 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 , sashal@kernel.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2113574714.3779.1542031670315.JavaMail.zimbra@efficios.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18111216-0072-0000-0000-000003C77530 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010035; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01116417; UDB=6.00577118; IPR=6.00896525; MB=3.00024128; MTD=3.00000008; XFM=3.00000015; UTC=2018-11-12 16:01:43 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18111216-0073-0000-0000-00004A158C54 Message-Id: <20181112160137.GI4170@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-12_11:,, 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-1811120139 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 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. Thanx, Paul