Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7802617rwb; Wed, 23 Nov 2022 10:56:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf5rOXc/Hz0+wqrLPbZOZkeYYpF4oVBjBmJcGu7xZRMjBrkLiwuiNCWBs3sjTaxUuMCfml5Y X-Received: by 2002:a17:906:cf85:b0:78d:b66d:749f with SMTP id um5-20020a170906cf8500b0078db66d749fmr23849555ejb.566.1669229812819; Wed, 23 Nov 2022 10:56:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669229812; cv=none; d=google.com; s=arc-20160816; b=J5CaDp4VsrIO5KA9VYAYN5YAjuDKfcKiWkGFO8KdXqsYuc9NUOnUR6i2BU74n1X76j Kkmj+bqQp6jBXfchOO/Whl2Kz2WQh4+vQRHpYbQkHmH7l/csTzWw1bpuhMLD6UfClTMd wobVj7T9ag6z8wV2pPi+iHLYj/hzknIT6ltyvqO3ovlUbnBz7hFiyaeUh6XQI1d//m2M TRr9CrhIPIMFJeLTk9Xli7Zu1OXkNCYlK1KcjG2OPEvRzhTu39mO5B3Y8vi8YnlanlQt rDLS+4oxdIup/351bfkDjq/CG60ouHqHNOtGGFJHI6lJn9joH/42+XzcnQuaQ7uY/wL3 jhRA== 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=BLW4pCnxTLiu7yOLu46X+Yd9XR2qigBoReM187EqQJE=; b=s2R75EH6nkShDlG/CrStsiuFh3EnczmM6y4WaZ7KvzSsj2pJIlNE56EsAfqKAweU+D sw5M13C/Y5TP1ofkJ1NtA7VdQ7LUKqU15NQBE1pbX66U+cyQLQ2zFw/sDqG1CX3wO0u7 RU2+eNt4c6mhI3eas81j29e2cyPks3SrCUlXWricFqAN3RhIWqrbv90sDJFIDItelCAy y8W1ruRcbGk90Mk0haFV+ySMHtR/0cXFOdo+m54E6OEnsoFvHJzjNNMup/ZnJ7SKF2sK rJsE0rukJEU4PBM6BXW68ia+s4Zq3uVWCT5O+3EVtb001qKMfnQhd6FkjVgfouc1QkFC EtRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jppLilPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd14-20020a1709069b8e00b0077d562462f5si308641ejc.381.2022.11.23.10.56.30; Wed, 23 Nov 2022 10:56:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jppLilPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S239810AbiKWSdM (ORCPT + 88 others); Wed, 23 Nov 2022 13:33:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239730AbiKWScc (ORCPT ); Wed, 23 Nov 2022 13:32:32 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E95126453; Wed, 23 Nov 2022 10:32:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 831A761E73; Wed, 23 Nov 2022 18:32:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9952C433C1; Wed, 23 Nov 2022 18:32:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669228345; bh=qlJGkQUoH97jjulOJM08KV8g3ZWseUgpcf17OKcB79c=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=jppLilPjVrlbm208AqRfBA9BYCISp8szS9PJbocUzBxqDon0m4d9BJs9hqowDn3Jx CYvcH2hqxOPG8JeHsN2qpAqy9MJ7wTuq2WlouqqkPpz6jz9lQ8ROWCfs0wvQrCXCY3 JxSiJZDnOlwqAVQV0FpYluRImZGrDk35EwTlKvUikXSP+Xtu58CSyUKU9iDcLpLm2C yicnPkzMvxgiRrMYqM0+5QW4Kg5m3WmQs2bzkhUVrHaW4sOJw/C34NywjRZ6ryrlYI 7VZlra67etNM8CUbrSnwfGyfFXWfyON1aYEzlemqXsvgSd9BZZ0G0EW8QDcwnWapr8 88tPHZA7LsQFA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 9DD645C0A3F; Wed, 23 Nov 2022 10:32:24 -0800 (PST) Date: Wed, 23 Nov 2022 10:32:24 -0800 From: "Paul E. McKenney" To: Akira Yokosawa Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH 1/2] docs/RCU/rcubarrier: Adjust 'Answer' parts of QQs as definition-lists Message-ID: <20221123183224.GB4001@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: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 23, 2022 at 06:23:09PM +0900, Akira Yokosawa wrote: > The "Answer" parts of QQs divert from proper format of definition-lists > as described at [1] and are not rendered as such. > > Adjust them. > > Link: [1] https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#definition-lists > Signed-off-by: Akira Yokosawa Applied both, thank you! Thanx, Paul > --- > Documentation/RCU/rcubarrier.rst | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/Documentation/RCU/rcubarrier.rst b/Documentation/RCU/rcubarrier.rst > index 5a643e5233d5..9fb9ed777355 100644 > --- a/Documentation/RCU/rcubarrier.rst > +++ b/Documentation/RCU/rcubarrier.rst > @@ -296,7 +296,8 @@ Quick Quiz #1: > Is there any other situation where rcu_barrier() might > be required? > > -Answer: Interestingly enough, rcu_barrier() was not originally > +Answer: > + Interestingly enough, rcu_barrier() was not originally > implemented for module unloading. Nikita Danilov was using > RCU in a filesystem, which resulted in a similar situation at > filesystem-unmount time. Dipankar Sarma coded up rcu_barrier() > @@ -315,7 +316,8 @@ Quick Quiz #2: > Why doesn't line 8 initialize rcu_barrier_cpu_count to zero, > thereby avoiding the need for lines 9 and 10? > > -Answer: Suppose that the on_each_cpu() function shown on line 8 was > +Answer: > + Suppose that the on_each_cpu() function shown on line 8 was > delayed, so that CPU 0's rcu_barrier_func() executed and > the corresponding grace period elapsed, all before CPU 1's > rcu_barrier_func() started executing. This would result in > @@ -351,7 +353,8 @@ Quick Quiz #3: > are delayed for a full grace period? Couldn't this result in > rcu_barrier() returning prematurely? > > -Answer: This cannot happen. The reason is that on_each_cpu() has its last > +Answer: > + This cannot happen. The reason is that on_each_cpu() has its last > argument, the wait flag, set to "1". This flag is passed through > to smp_call_function() and further to smp_call_function_on_cpu(), > causing this latter to spin until the cross-CPU invocation of > > base-commit: 741cfda870057958c53f9cb0b21ac33f531baaf4 > -- > 2.25.1 >