Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp820208ybx; Tue, 5 Nov 2019 06:07:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxW685pYDdPsf/XEmOzOQRB5getXDlAgEODdKEcmSAqp3VM5pXu4IHgSQZ1fZ5HO2iDXIrz X-Received: by 2002:a17:906:694e:: with SMTP id c14mr30322586ejs.122.1572962857662; Tue, 05 Nov 2019 06:07:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572962857; cv=none; d=google.com; s=arc-20160816; b=Souh1sk+Hc6h2BEoJHZ7KZK72qnuYBNDtT5MinzHDvDbWrB7FzX40NlGBJ4T7bPn8Q /dlWhyAySfQyVbthsdTWVOq0G+HQQ58CmftCs8jw03IcHP47JnxtCjyw7Mee1SHe84E8 v2SgLYvmwtmJWXnPFVsAoqeebJFkBLQjgBDvxexdDszlIU02psDJN+yhn1S1wiI81XjN 29OT8zpKUxykjD8DZ+gRf7DakShKjokEa1ZzpMdPZdAhP3/bnw9owxaHngjqiF5qH/JF nfP4U1ofzrChjNN8nJn8pVg5dEc+gZpWctgPF72ZkiyHxhNcOZGHnOgZskWX2ELPMa/K cEHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature; bh=YQL6SU2a3KKoxlnyLuTfZyxJaKZQZOJt+fGwiLwFJ9U=; b=pyXmk3804v2kypaon/RZvzpaAsUwhOKW2esQlS0aHDuhAh40wqBJuQea82C2BEuRmP OHsDQkKUKBBaBM2jK265VkibFwsoN+XmkEEB5GrEozm+h+twi3hBzKkWr/3PSrGrPf14 vR/sZZaebJvGq8jorUiSLMYVNUjtCEFcRMPrky3AIt3X8vb7jg1iSLUmqT28bkm+50vc SXmTYuEBgOlbl0Fd0ZwkB0Xrf3e5iJk2FYosY26U+ZCbj4rt+6Tft5nXCviQ0BeKaEyM wRnNk32w2odvVPsiIKkYo9OHJ9yLXVbcBPC5tTiDRDfPuZHMYGaQ0/YlOj1ZeX6QrTiK /1YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pPYSp2Nb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h56si9721438eda.356.2019.11.05.06.06.47; Tue, 05 Nov 2019 06:07:37 -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=@gmail.com header.s=20161025 header.b=pPYSp2Nb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389452AbfKEOCw (ORCPT + 99 others); Tue, 5 Nov 2019 09:02:52 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40564 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388428AbfKEOCv (ORCPT ); Tue, 5 Nov 2019 09:02:51 -0500 Received: by mail-pl1-f196.google.com with SMTP id e3so7353491plt.7; Tue, 05 Nov 2019 06:02:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YQL6SU2a3KKoxlnyLuTfZyxJaKZQZOJt+fGwiLwFJ9U=; b=pPYSp2NbeXLKWAE9KkeK2vm7vB0gKz42Hn9YwazC1o3qnOC94f4orQrSZIShFbN7sK 68v1nDDjgBVBgqTAG0A1KG+y0ZI0d82qmwb/n538ktvyL5qs58ckPeAPJF8pOi3wm0pf Pvv9RgbyMbDr5+/+xX5QTcblS2FfzYtnDB95acI88zTExYefcIeiBsOzMpbP3qU6GSf2 GuosVwY307GC7Owz/fwcJV9ybRADP6HN19es9Re8uljIhTacybA2nSXmoKAQ7FyqxuWs fa8F2uy2dAJDp3xAUY/FL3VI9KT/qpWg9uHfDJhWGmQUis8iNI/ArhXTI2368BG6U7Mz 4b9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YQL6SU2a3KKoxlnyLuTfZyxJaKZQZOJt+fGwiLwFJ9U=; b=C20Lo+qcUxHI8XW/w53ZosmyZVGIP2CZatB5pcuiPj9t4ynb4DuLEzsAGnOkGqu+OC M4mUYpUO/YC0SqSg9o7863GKCSyz2dwR0AUFpU5z8uTanyjC1DONF1JKRIfjzAXCPr5g 8oYEFYy5keh67o9TG6IAb1ZFLsaA0klH7uJc6K5XBl1yOZKt867LUi4qta13nVxqrxE2 W0JKHPNg/1ZnTR5GX/AGd9BkRAKWAyMFf0KBIJhMybZfamy2CQM4iz8KKI06xPP9PRm0 ghkve1fsi6HPrqdUtc31SzXcQS4suPpjiVJlOFvvsYbRoAvhV/uiwk1fu/G/yLwiIgxk vgjQ== X-Gm-Message-State: APjAAAUq1AYvL+gncae8n735BvSerYTFqWO8oJGxUyTC0qYR4YWs4EDj WFSzjFPWhYaZJYuxDtbvOt7Yjhxn5+8= X-Received: by 2002:a17:902:9343:: with SMTP id g3mr13093886plp.278.1572962570199; Tue, 05 Nov 2019 06:02:50 -0800 (PST) Received: from ?IPv6:2405:4800:58f7:3f8f:27cb:abb4:d0bd:49cb? ([2405:4800:58f7:3f8f:27cb:abb4:d0bd:49cb]) by smtp.gmail.com with ESMTPSA id v17sm25646727pfc.41.2019.11.05.06.02.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Nov 2019 06:02:49 -0800 (PST) Cc: tranmanphong@gmail.com, 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. To: paulmck@kernel.org References: <20191028214252.17580-1-madhuparnabhowmik04@gmail.com> <5bab8828-76e4-c67f-5855-ea4e4f43eaa5@gmail.com> <20191105135524.GN20975@paulmck-ThinkPad-P72> From: Phong Tran Message-ID: <7b9f5499-bd03-8405-52f5-1fb94e9d85dc@gmail.com> Date: Tue, 5 Nov 2019 21:02:46 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191105135524.GN20975@paulmck-ThinkPad-P72> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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) > { >