Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4118529imu; Mon, 12 Nov 2018 06:09:14 -0800 (PST) X-Google-Smtp-Source: AJdET5dPjndtyxe91DooieZ2MpGKM2el63PDpg/F//zFz4WmookR/DKmvjp1TNQqB9p3hopQS9pv X-Received: by 2002:a62:1e42:: with SMTP id e63-v6mr1034461pfe.149.1542031754551; Mon, 12 Nov 2018 06:09:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542031754; cv=none; d=google.com; s=arc-20160816; b=l5TNPp3jZCnL/logDmL6gTByUMEiVBnNAlQ+9eK1jvkdPOz+hXT1T8mg1nW1wDNhpm RHbgBP/9gafaaZhnMQ9UvM2ZbtvCCPggStMZa1ZQfZP1KZWqKmPnqdM2RRSXO90fY4A1 fmLCxQG2THsR57xwTsw5KH30E2siA4lp0MswgOsoQ8hGf71t5e04uYmXDf/naBadwT9G PuSo1qXo5doJZVo6ubvYRVx3j1euI5WLgJq0rx8FWnT9xaj/M1WBEUMJgHtjpQ1ofjEY +vlaUWMSkbTqgn4/Fqs9+NzyT1nFKv4Utqqh0E89z3Ccos/iN3DKYVl6DJpcRmgK0T/N wbYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=X7AGNmctA5QMRd+GNzVJIazoxttgMWPkCHXlyaGPfFY=; b=RWc7soq9H8vkuF/+Kv4rVMC5auuThpBDBZ6k+ZOBUbmlm+Ne+dj33QZ0FBgRbw+2B/ JNxWCz0bd5HPP6CGZ/6+D+vZI4OmnFQFA1qE/GHhCJ48lIdVna20/k4KtZSrb8K5GFpP 8QN7UuULUrzBmmMlIvbW1Qnc02n7fkRUekcZu6H+9XVjCC8cacm52uz+F+LKXrgLq3WR D5pzPS8O/ULLK7AVbyyCv1GL7qXqTVYRVhS3dyskqwMht/bImAN0gS/wIZStU+iFC9wS Lr6hFYYXU9DQ1KsvwBqwG8vnC74JCnXrEldiRLvg3OuzOOfSFAFMVfiHKub3rYVL7N5I 4nSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=a+ql0PFF; 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=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si17370954plt.28.2018.11.12.06.08.37; Mon, 12 Nov 2018 06:09:14 -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=@efficios.com header.s=default header.b=a+ql0PFF; 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=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729730AbeKMABS (ORCPT + 99 others); Mon, 12 Nov 2018 19:01:18 -0500 Received: from mail.efficios.com ([167.114.142.138]:47998 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727103AbeKMABS (ORCPT ); Mon, 12 Nov 2018 19:01:18 -0500 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 827CB238972; Mon, 12 Nov 2018 09:07:51 -0500 (EST) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id BpKjrrEUl27O; Mon, 12 Nov 2018 09:07:50 -0500 (EST) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 8C526238969; Mon, 12 Nov 2018 09:07:50 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 8C526238969 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1542031670; bh=X7AGNmctA5QMRd+GNzVJIazoxttgMWPkCHXlyaGPfFY=; h=Date:From:To:Message-ID:MIME-Version; b=a+ql0PFF1nYBBF6avk0paPYNZ2ZWSmePUHARoyKkdbHZtFF66Su6DFgpF7R1QhwNf k7KtlzypICUoM7DpT/FVpNXFPBu7EI19u9b57VIgItLrDxofUaHl7pj+3ldkt46DZy K6sgJoKZSzXrCLVejOu33p2auQzElLsCpffdSmagCL/FyVz8gizVZVCDTKJ68xWdm0 jzhnlVYrmmPI0vcQ5ZyKILVRLm8WYBH5OYOq6grbX0lVh2gDIrn0Syzn6naqTyYkSn Xe9C3iyzD4Wav9HTTW0oLTQKif3WozI/yrBhZAvU75yqNwy6IXjr6SKOxebooBYmXL Kb1dfWt4U3ysQ== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id LRjxCb_-ZzGM; Mon, 12 Nov 2018 09:07:50 -0500 (EST) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id 6D730238962; Mon, 12 Nov 2018 09:07:50 -0500 (EST) Date: Mon, 12 Nov 2018 09:07:50 -0500 (EST) From: Mathieu Desnoyers To: paulmck 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 Message-ID: <2113574714.3779.1542031670315.JavaMail.zimbra@efficios.com> In-Reply-To: <20181111194104.GA4787@linux.ibm.com> References: <20181111194104.GA4787@linux.ibm.com> Subject: Re: [PATCH tip/core/rcu 0/41] More RCU flavor consolidation cleanup for v4.21/v5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.142.138] X-Mailer: Zimbra 8.8.10_GA_3047 (ZimbraWebClient - FF52 (Linux)/8.8.10_GA_3041) Thread-Topic: More RCU flavor consolidation cleanup for v4.21/v5.0 Thread-Index: wSthxDOTXtMSC6VgWohpPZMvbxkGKQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- 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. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com