Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1403566pxj; Fri, 21 May 2021 13:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvW/L3PfVeaQZoPZnD/HNfYWOWDhH/XwAEB4bUFut/YDqoPU0Ho0vqYx3j28w0rVSGHtCc X-Received: by 2002:a02:ca0d:: with SMTP id i13mr6762902jak.98.1621628692164; Fri, 21 May 2021 13:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628692; cv=none; d=google.com; s=arc-20160816; b=Z9Heu74dpIFubFVvX61/Am8O0JLz22A4MCdqQG8htAjFttm9ziOGZSuL5W3eemDsKO 59+cuWArEVZgJjCYZdKZkFA9EWksg4rbWrXVCD3kjLCR+qIsSuv75ClwqXPZoQFSpAva hTimQHPZ4saziJ/ph7420nzizzUQwKRZGFY9/Q1hcg6CDqlYEST5tf6c7dJtl8jw5xn3 c083TYSdir6du2OvhDlHdBpuhryvnD1u8UGSyIosZQQ5I2r4Y0M3U7awug2GzGwjjuMY +yVHn/bHFPoqQvD47ookcdu7FlzuvR7KXfvwWogg6kVmpH0BS3JLwYf1OEaK4jKQfHSY /6Ww== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=th5fVvu43cH2QOMEAUy2jbijXrVSwNn2573pMA2r778=; b=qR7vTuIfr8j8IXu2RVKGMo6RIKxTsY1cl0XxuJUDW7X08/HRBx0Oom/jftZhaz5riM bMLlA012u6wTUVSqokWe/+DqdU51gwO0tTNYdODZL1mdo4TvfVp42byBcccJNmCUa7i0 Due+BrI1bmhQjiMKOIgGWLVgzg+j7fyaPgvfDJx5fH+et6oLOBINYWUfBMnsLGDKZmoy CdDS19ysu6GiQt2As0t4mNyS+ykb63TTxD9tv7u9dFuTk/1Gx444FRWSAPWioXrhyvvL 3nqdEK36qAUc6gkkMADusSb0QBtfr1S16i3f9b2qbCjBGlqxFBfGLRnQPQGxBBl3jhHH CxtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hi/W261F"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si7132662ilf.140.2021.05.21.13.24.39; Fri, 21 May 2021 13:24:52 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b="hi/W261F"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234451AbhEURh3 (ORCPT + 99 others); Fri, 21 May 2021 13:37:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:49372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233220AbhEURh3 (ORCPT ); Fri, 21 May 2021 13:37:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BEB0261168; Fri, 21 May 2021 17:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621618565; bh=4aOxbiHGvShE6QjDYszuUr7TvUl6/VFWQI8sBfUysUU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=hi/W261FoFNP/QGvNDUiE95mXNskFLc5lTf+X6+xBckoXCXTUbFgBWOs+mNSEimqc BECCpY4bBmHV9tLiHbfx+KXp4E63V22HCPy0T6uV/K2UYGY2ePy9x1kylXpk2K7muk yStUy+YvZw89WdmyeBt5bXCI1yJkcaypO2RAc9T9MUCIQDJni65alU1znT8iCKiMmU JzrsPKJO+ZpUWot7kc3/bMwwNuGag2n3kAsl71E/apkcFjZXbK2Tf3zylLniNoISFz kEt6RDV6MEVncFpP0DTRAtzEz8msJ1TNDFsQPC6LgjAhnSj57wx9rk6roxQkD3+d6i Jl97pgwyVSl7w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 89EBE5C0164; Fri, 21 May 2021 10:36:05 -0700 (PDT) Date: Fri, 21 May 2021 10:36:05 -0700 From: "Paul E. McKenney" To: Akira Yokosawa Cc: Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , Jonathan Corbet , rcu@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -rcu] Documentation/RCU: Fix nested inline markup Message-ID: <20210521173605.GA4441@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 11:16:04AM +0900, Akira Yokosawa wrote: > To avoid the ``foo`` markup inside the `bar`__ hyperlink marker, > use the "replace" directive [1]. > > This should restore the intended appearance of the link. > > Tested with sphinx versions 1.7.9 and 2.4.4. > > [1]: https://docutils.sourceforge.io/docs/ref/rst/directives.html#replace > > Signed-off-by: Akira Yokosawa Queued, thank you! Or if this should instead go via the Documentation tree: Acked-by: Paul E. McKenney > --- > Hi Paul, > > This fixes broken-looking cross reference in section > "Publish/Subscribe Guarantee" at: > > https://www.kernel.org/doc/html/latest/RCU/Design/Requirements/Requirements.html#publish-subscribe-guarantee > > To-be-replaced macro string can be much shorter. > I preserved the whole string considering the readability of .rst. And completely agreed on keeping the .rst readable. Thanx, Paul > Thanks, Akira > -- > Documentation/RCU/Design/Requirements/Requirements.rst | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/Documentation/RCU/Design/Requirements/Requirements.rst b/Documentation/RCU/Design/Requirements/Requirements.rst > index 38a39476fc24..45278e2974c0 100644 > --- a/Documentation/RCU/Design/Requirements/Requirements.rst > +++ b/Documentation/RCU/Design/Requirements/Requirements.rst > @@ -362,9 +362,8 @@ do_something_gp() uses rcu_dereference() to fetch from ``gp``: > 12 } > > The rcu_dereference() uses volatile casts and (for DEC Alpha) memory > -barriers in the Linux kernel. Should a `high-quality implementation of > -C11 ``memory_order_consume`` > -[PDF] `__ > +barriers in the Linux kernel. Should a |high-quality implementation of > +C11 memory_order_consume [PDF]|_ > ever appear, then rcu_dereference() could be implemented as a > ``memory_order_consume`` load. Regardless of the exact implementation, a > pointer fetched by rcu_dereference() may not be used outside of the > @@ -374,6 +373,9 @@ element has been passed from RCU to some other synchronization > mechanism, most commonly locking or `reference > counting `__. > > +.. |high-quality implementation of C11 memory_order_consume [PDF]| replace:: high-quality implementation of C11 ``memory_order_consume`` [PDF] > +.. _high-quality implementation of C11 memory_order_consume [PDF]: http://www.rdrop.com/users/paulmck/RCU/consume.2015.07.13a.pdf > + > In short, updaters use rcu_assign_pointer() and readers use > rcu_dereference(), and these two RCU API elements work together to > ensure that readers have a consistent view of newly added data elements. > -- > 2.17.1 >