Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4198135imm; Mon, 15 Oct 2018 10:37:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV60mT5l0e7iqK6TBsyy0Bnj5ZC2QkSNwIP8XyFmovaYlHWuKBxM7iQ3vj1ZlsX8/RBdi68fp X-Received: by 2002:a17:902:6903:: with SMTP id j3-v6mr14227489plk.74.1539625044691; Mon, 15 Oct 2018 10:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539625044; cv=none; d=google.com; s=arc-20160816; b=aCvOtngjsN/88z5oZjHFwn3teuI5lbAXsNOpJ1uoccf55l46JkbH+CBav8ry/D5+PK HFiPiBLCvfwWNDJf4QI+6QdmBjbIYImRIsX7vcXm26HmzGtaRE+8PAyK/dUxZPXUATcI lMT/FOzJhHQ6QUdhH5etXZFCjY7oq4Rdku4Fcl+MjUALwtl3xg0OBcnnTxqo1VeR5BKQ IRlZ36hjG6HmPKhsxb3axrT3EtCeAuwzR5GpsukV+VCnyebYJ5lEhn+DxMCK6qQ8PqpF e0JUdX6IwUhQNDODgI51GdF/OS1TiI2xoKZJ6k9v/lIpcjSEAV87FjWoRWKS8xViBtdc AgDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date; bh=iz7E3G99HQ1hH4dRd/eyFsoCmszPLaYavrnfp7xjyLM=; b=niIQcdFTLvcUQEHvqJxQ7QRGbz58JatR3THrlRq/dkyvlKvfSJXGkNL+kHT7Op6mOn Hps6DKj1cJd6EVOENoeTz/ZKHyNBPwUjcKAvi/k5jowNPYFQ1xGFHj3jv2xFBG2ANMKu QtMPh4w27HZh1Yb/thTOOkIejUswUX7bUXSdLLCBlWhoPcYNC49pOkz0xtfTvceBfjfd 9JCHGH6qFZAkClaDmDG/jKu6dF4DTWQqpmr4wuMkFj3ALgh/DWOyvF60B4oKZF8wYx68 WE+6e3EOwNvInX7khokI5GEs7RLnzzytLgZiLSA//VSPVUD0uAwyuK7MOoxTxX7ChIDH 4krA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a90-v6si6022089plc.88.2018.10.15.10.37.07; Mon, 15 Oct 2018 10:37:24 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726777AbeJPBWq (ORCPT + 99 others); Mon, 15 Oct 2018 21:22:46 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58094 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726588AbeJPBWq (ORCPT ); Mon, 15 Oct 2018 21:22:46 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w9FHTA86027144 for ; Mon, 15 Oct 2018 13:36:33 -0400 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 2n4w32eu0m-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 15 Oct 2018 13:36:33 -0400 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 15 Oct 2018 13:36:31 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 15 Oct 2018 13:36:29 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w9FHaSBx23134310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Oct 2018 17:36:28 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 25EDFB2065; Mon, 15 Oct 2018 13:34:24 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0882CB2064; Mon, 15 Oct 2018 13:34:24 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.109]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 15 Oct 2018 13:34:23 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 40F9A16C0EC1; Mon, 15 Oct 2018 10:36:33 -0700 (PDT) Date: Mon, 15 Oct 2018 10:36:33 -0700 From: "Paul E. McKenney" To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] doc: rcu: Fix code listing in performance and scalability requirements Reply-To: paulmck@linux.ibm.com References: <20181015022942.224250-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181015022942.224250-1-joel@joelfernandes.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18101517-0040-0000-0000-00000480E003 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009881; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000268; SDB=6.01103107; UDB=6.00570957; IPR=6.00883159; MB=3.00023765; MTD=3.00000008; XFM=3.00000015; UTC=2018-10-15 17:36:31 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18101517-0041-0000-0000-00000888F548 Message-Id: <20181015173633.GA2674@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-15_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810150153 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 14, 2018 at 07:29:42PM -0700, Joel Fernandes (Google) wrote: > The code listing under this section has a quick quiz that says line 19 > uses rcu_access_pointer, but the code listing itself does not. Fix this. > > Signed-off-by: Joel Fernandes (Google) Good eyes! Queued for the merge window after this coming one, thank you! Thanx, Paul > --- > .../RCU/Design/Requirements/Requirements.html | 2 +- > kernel/sys.c | 16 ++++++++++++++++ > 2 files changed, 17 insertions(+), 1 deletion(-) > > diff --git a/Documentation/RCU/Design/Requirements/Requirements.html b/Documentation/RCU/Design/Requirements/Requirements.html > index 4fae55056c1d..f74a2233865c 100644 > --- a/Documentation/RCU/Design/Requirements/Requirements.html > +++ b/Documentation/RCU/Design/Requirements/Requirements.html > @@ -1596,7 +1596,7 @@ used in place of synchronize_rcu() as follows: > 16 struct foo *p; > 17 > 18 spin_lock(&gp_lock); > -19 p = rcu_dereference(gp); > +19 p = rcu_access_pointer(gp); > 20 if (!p) { > 21 spin_unlock(&gp_lock); > 22 return false; > -- > 2.19.0.605.g01d371f741-goog >