Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3366720pxb; Mon, 9 Nov 2020 09:18:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjA1xq4zOP1s0U27FJ2kqbf5g9o3DjbaLzi1yJis10l0XDaHyihGlqA5aYKUOUvpuIsMp2 X-Received: by 2002:a17:906:1497:: with SMTP id x23mr15552987ejc.453.1604942324878; Mon, 09 Nov 2020 09:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604942324; cv=none; d=google.com; s=arc-20160816; b=T4zkzAB4y1CS8I+dpxiFbWq3iMZZv5amJKzp5XWJ23wJRbTfwpGbtWpQEc4rU6cE5B hO1WzzNPyh8flFLc2thiWleY07b0R9Pkn3PnMED751y1WDrepQwld+kupDSbJjxyUJUp XAd/leWQ8Buegjq1si25QRdiTqj6k+ruM8e+yVOlnoTcXN/xsglYu3vG507esMMINfp0 TxBfp8euefs+S70TfQJZ6RGV3Ajx+P2Q721Gyll9upn9Izaafbp3UR5jQSOILJUwuydB OJkCuvbRGPcp+DkuYl6pJaq8Wv5mVxs5HeErM29dX8cSrlJGL1gKQPgnfvjhcrS3Lpdk kIbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IRGWXfIRqxGIi5k6FVAzzpnzEm6lZpF2KFeggahYEwk=; b=YTXNy+L73tVdVEzLhCZePNbFJhQvapUTnwLI3Fv/R9QLbrHOUg9Far1V8hisS+AJdy TfUdrW+mEE9dme2bwc/XLivYMqwk0IRxrMRSIyq0GtvhgSJC5Nz9l5/trCq2QgYaon5B K1jkiv92ZHx6n9Cz/MG1A7WHFrXzdX3JWiCdxovLMFQMje4rhwK4XxIPcO/Sf8mWz2wM WiH1C6x7JZF6Nv+E+uOsJ64ipN12CYZPZ1nZLz4AZX+OA7iYOuC3Zi3UIvQWHY67eFJQ 6VoT6XPXE017uSkBQmXA23Uv7noaiwFygYYcYO6c5k0LW64UicHsKrrAcosEfaZZJ6If WSKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KtOE+n9G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si8866067ejx.35.2020.11.09.09.18.19; Mon, 09 Nov 2020 09:18:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KtOE+n9G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730315AbgKIROx (ORCPT + 99 others); Mon, 9 Nov 2020 12:14:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729432AbgKIROx (ORCPT ); Mon, 9 Nov 2020 12:14:53 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A9FC0613CF; Mon, 9 Nov 2020 09:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=IRGWXfIRqxGIi5k6FVAzzpnzEm6lZpF2KFeggahYEwk=; b=KtOE+n9GAJuhXhpJC6f+1Hzacx evVAkffE+QO2bu442jsHWxLq4jg4SXAhtUiy/LtaeLqEuOD+9bYK//Lsg1JXhWLz/jWclxA6I0NcF M3TyENVEI+PjGNzcKP8gd89VG+IpNsVnnWFK23ZdaTu2PTpnXX4lISBNUb5pD7tHSx1SfYPAk6v+F SaiFH6ufE9oQylh9wbjtZCESfVNJm2/b5xFe2m/btdq+V80YpxIb5F4FBY5eqqbCSOYroY8HULgKO 9p72e7QmKCqT/rY+MK0ptsSk6Sm3CjXcfJJr3QDCkBbF2m/YpMgxOWApGjR1y2lA3gDVAy5r5d9Eb jRvosr+Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcAkU-00043O-Mx; Mon, 09 Nov 2020 17:14:34 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5327E300455; Mon, 9 Nov 2020 18:14:33 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 15615203E11DF; Mon, 9 Nov 2020 18:14:33 +0100 (CET) Date: Mon, 9 Nov 2020 18:14:33 +0100 From: Peter Zijlstra To: "Paul E. McKenney" Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org Subject: Re: [PATCH tip/core/rcu 2/4] docs: Update RCU's hotplug requirements with a bit about design Message-ID: <20201109171433.GL2611@hirez.programming.kicks-ass.net> References: <20201105230444.GA18574@paulmck-ThinkPad-P72> <20201105230510.18660-2-paulmck@kernel.org> <20201109122317.GM2594@hirez.programming.kicks-ass.net> <20201109162452.GK3249@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201109162452.GK3249@paulmck-ThinkPad-P72> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 09, 2020 at 08:24:52AM -0800, Paul E. McKenney wrote: > On Mon, Nov 09, 2020 at 01:23:17PM +0100, Peter Zijlstra wrote: > > On Thu, Nov 05, 2020 at 03:05:08PM -0800, paulmck@kernel.org wrote: > > > From: "Joel Fernandes (Google)" > > > > > > The rcu_barrier() section of the "Hotplug CPU" section discusses > > > deadlocks, however the description of deadlocks other than those involving > > > rcu_barrier() is rather incomplete. > > > > > > This commit therefore continues the section by describing how RCU's > > > design handles CPU hotplug in a deadlock-free way. > > > > > > Signed-off-by: Joel Fernandes (Google) > > > Signed-off-by: Paul E. McKenney > > > --- > > > .../RCU/Design/Requirements/Requirements.rst | 49 +++++++++++++++++----- > > > 1 file changed, 39 insertions(+), 10 deletions(-) > > > > > > diff --git a/Documentation/RCU/Design/Requirements/Requirements.rst b/Documentation/RCU/Design/Requirements/Requirements.rst > > > index 1ae79a1..98557fe 100644 > > > --- a/Documentation/RCU/Design/Requirements/Requirements.rst > > > +++ b/Documentation/RCU/Design/Requirements/Requirements.rst > > > @@ -1929,16 +1929,45 @@ The Linux-kernel CPU-hotplug implementation has notifiers that are used > > > to allow the various kernel subsystems (including RCU) to respond > > > appropriately to a given CPU-hotplug operation. Most RCU operations may > > > be invoked from CPU-hotplug notifiers, including even synchronous > > > -grace-period operations such as ``synchronize_rcu()`` and > > > -``synchronize_rcu_expedited()``. > > > > I was under the impression that this rst crap now recognises func() and > > you no longer need to make the text unreadable with "``". > > It was there to start with, but good point. How about the commit > below? Much appreciated, thanks!