Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp822499ybx; Tue, 5 Nov 2019 06:09:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwQdshBfuIrgJelCts7N/1cXjxeCYG3m1tURLUvYJYBOT9PR+Qufl6cA09pmTUY4/eOHEJv X-Received: by 2002:a05:6402:38e:: with SMTP id o14mr2153612edv.285.1572962967718; Tue, 05 Nov 2019 06:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572962967; cv=none; d=google.com; s=arc-20160816; b=Iit3/2J/GZlpQBiCD1kTPU4C/MhXXeE6SuWC/hwL12m13v+1p189ehiwfKosiFOCMZ Er8ZHQM4G+1xxfCGGNxQBV0rncKENfGESd1OSdeEq0ENNnhxJkc++NJAtaZVnXsth2Sc WzPwz94w/7z9DilRaD6sZ71PucYJ3ntlIJhoaAdnBLQdcgJMV2RPp3Yc4rkqedwPaFzO Bd3VvTLqUD/CigRwlRDCyNkvXpYieAyFnf1ftQU8t/fIUKbufg2gqQDSdPHFj6+rzQGA aZdIgcwk4MOADPZB7KCPAW3IbaDHd97wJRMwNPRFcX2Lrq/2jQ4Yp7nUo5by0CAu617V Zgvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=vwarTVYML+cfyE222Sikz5T1+810TTHbejYInOWvvS0=; b=Gyi6iQDRHhBkPYZAp+BmjyYg+mNjKl/5djhq++b3HzgC0Wo8C3bbocGnddNH3Pqw2W 8P/PebiWeyfxlBP9sy+t8kuneBlppVAAUtVS9wG4nvVWm3EcyiRkCuwvxalAxfqQOHy9 1TMTLuQ9fox521mwdVypioMxXPgjw0JzCxszyZIbcjejdNo2FHm63lpLTjcp5VG6bltH IgdY60AE5vmOUks80+rEbHKU267NWvf2XZGu9gB7J/8ImZoU1NeprlzoDqjIFw3fRyOO F3obGAqTLKWIygpxle0jrMdKcojir1nsEMgF7bb+yhJOVaZz0uiOHX59FDNcPHu8jFwV VrAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mITltpIs; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v35si10985456edm.213.2019.11.05.06.09.03; Tue, 05 Nov 2019 06:09:27 -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=@kernel.org header.s=default header.b=mITltpIs; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389386AbfKEOFi (ORCPT + 99 others); Tue, 5 Nov 2019 09:05:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:40516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388428AbfKEOFi (ORCPT ); Tue, 5 Nov 2019 09:05:38 -0500 Received: from paulmck-ThinkPad-P72.home (unknown [109.144.209.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D908521882; Tue, 5 Nov 2019 14:05:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572962737; bh=vQxBQ0EAzzICHxv5rPXPpBob4gEq2oHIQaAHTGT0/p8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=mITltpIsZm/TzaXrNgBEy3wxth02B7nfLt/FWGmcPEHPp7hKxgzU6tZfVzHBypvfV I69WJLXziWvfy/SVqwZXeRbjn6nsAvrlTcneMLs8uEGKHS2EZXkrmd/oumdHz0Fi+q F3NQJ/VdNuHjgwPVjd/PzdRTnr1zmzFlKDiyHiBQ= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 1005C35227C0; Tue, 5 Nov 2019 06:05:35 -0800 (PST) Date: Tue, 5 Nov 2019 06:05:35 -0800 From: "Paul E. McKenney" To: Phong Tran Cc: madhuparnabhowmik04@gmail.com, joel@joelfernandes.org, corbet@lwn.net, rcu@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [Linux-kernel-mentees] [PATCH] Documentation: RCU: NMI-RCU: Converted NMI-RCU.txt to NMI-RCU.rst. Message-ID: <20191105140535.GP20975@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20191028214252.17580-1-madhuparnabhowmik04@gmail.com> <5bab8828-76e4-c67f-5855-ea4e4f43eaa5@gmail.com> <20191105135524.GN20975@paulmck-ThinkPad-P72> <7b9f5499-bd03-8405-52f5-1fb94e9d85dc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7b9f5499-bd03-8405-52f5-1fb94e9d85dc@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 05, 2019 at 09:02:46PM +0700, Phong Tran wrote: > On 11/5/19 8:55 PM, Paul E. McKenney wrote: > > On Tue, Nov 05, 2019 at 08:40:05PM +0700, Phong Tran wrote: > > > On 10/29/19 4:42 AM, madhuparnabhowmik04@gmail.com wrote: > > > > From: Madhuparna Bhowmik > > > > > > > > This patch converts NMI-RCU from txt to rst format. > > > > Also adds NMI-RCU in the index.rst file. > > > > > > > > Signed-off-by: Madhuparna Bhowmik > > > > -- > .../RCU/{NMI-RCU.txt => NMI-RCU.rst} | 53 ++++++++++--------- > > > > Documentation/RCU/index.rst | 1 + > > > > 2 files changed, 29 insertions(+), 25 deletions(-) > > > > rename Documentation/RCU/{NMI-RCU.txt => NMI-RCU.rst} (73%) > > > > > > > > diff --git a/Documentation/RCU/NMI-RCU.txt b/Documentation/RCU/NMI-RCU.rst > > > > similarity index 73% > > > > rename from Documentation/RCU/NMI-RCU.txt > > > > rename to Documentation/RCU/NMI-RCU.rst > > > > index 881353fd5bff..da5861f6a433 100644 > > > > --- a/Documentation/RCU/NMI-RCU.txt > > > > +++ b/Documentation/RCU/NMI-RCU.rst > > > > @@ -1,4 +1,7 @@ > > > > +.. _NMI_rcu_doc: > > > > + > > > > Using RCU to Protect Dynamic NMI Handlers > > > > +========================================= > > > > Although RCU is usually used to protect read-mostly data structures, > > > > @@ -9,7 +12,7 @@ work in "arch/x86/oprofile/nmi_timer_int.c" and in > > > > "arch/x86/kernel/traps.c". > > > > The relevant pieces of code are listed below, each followed by a > > > > -brief explanation. > > > > +brief explanation.:: > > > there is just a minor ":" redundant in html page.There are some same in this > > > patch. > > > eg: > > > brief explanation.: > > > > > > Other things look good to me. > > > > > > Tested-by: Phong Tran > > > > Thank you, Phong! > > > > I queued a commit to be squashed into Madhuparna's original as shown below > > which adds your Tested-by and attempts a fix. Does this work for you? > > Yes, Paul. Very good, thank you! Thanx, Paul > Regards, > Phong. > > > Thanx, Paul > > > > ------------------------------------------------------------------------ > > > > commit 2c29f1c481f74f5e5aaaab195042f4df6a0b8119 > > Author: Paul E. McKenney > > Date: Tue Nov 5 05:51:12 2019 -0800 > > > > squash! Documentation: RCU: NMI-RCU: Converted NMI-RCU.txt to NMI-RCU.rst. > > [ paulmck: Apply feedback from Phong Tran. ] > > Tested-by: Phong Tran > > Signed-off-by: Paul E. McKenney > > > > diff --git a/Documentation/RCU/NMI-RCU.rst b/Documentation/RCU/NMI-RCU.rst > > index da5861f..1809583 100644 > > --- a/Documentation/RCU/NMI-RCU.rst > > +++ b/Documentation/RCU/NMI-RCU.rst > > @@ -12,7 +12,7 @@ work in "arch/x86/oprofile/nmi_timer_int.c" and in > > "arch/x86/kernel/traps.c". > > The relevant pieces of code are listed below, each followed by a > > -brief explanation.:: > > +brief explanation:: > > static int dummy_nmi_callback(struct pt_regs *regs, int cpu) > > { > > @@ -21,12 +21,12 @@ brief explanation.:: > > The dummy_nmi_callback() function is a "dummy" NMI handler that does > > nothing, but returns zero, thus saying that it did nothing, allowing > > -the NMI handler to take the default machine-specific action.:: > > +the NMI handler to take the default machine-specific action:: > > static nmi_callback_t nmi_callback = dummy_nmi_callback; > > This nmi_callback variable is a global function pointer to the current > > -NMI handler.:: > > +NMI handler:: > > void do_nmi(struct pt_regs * regs, long error_code) > > { > > @@ -61,7 +61,7 @@ Quick Quiz: > > :ref:`Answer to Quick Quiz ` > > -Back to the discussion of NMI and RCU...:: > > +Back to the discussion of NMI and RCU:: > > void set_nmi_callback(nmi_callback_t callback) > > { > >