Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3397788imm; Sun, 14 Oct 2018 19:30:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV60uyTpirIVpr6U7T2OYl9jmj2hlmocmrFLYzvecNpyX27LY6yT3cVkHsKF899KfzmUTNvqn X-Received: by 2002:a17:902:70c4:: with SMTP id l4-v6mr15029257plt.194.1539570634975; Sun, 14 Oct 2018 19:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539570634; cv=none; d=google.com; s=arc-20160816; b=qJEbEIybiDOFdE1lAGXT8cV9XINzM5crAHDRz8mkCLxxhtvXM0W8RqN/Ztj6VzLBye bkIWI29w7ELqFYNarZ0iToQFO3//c1LXpPNoNxBX9JXC14OCnI1gl0/+6o1V6ARZnRxd +GneRRETdvXtmxVQvFJRmRGXLUAXuY9y+oyuABjm0VP6iC9WzyH8hdavZG9nMIJQ4Km6 Cj83QTTZifgkhBdxGSetB4E8R3rICugpMvDYAkLjh5iiG3BGUi2Y66ERDSnscLkaWXwb 8R2zhwx4dM84+YsV00+jpnbwAGTg3Tj1Gi9vS4BI6ZOpEbmBJoYq8RWk/Cw6h//d1OcL eGCw== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FW952t4pDVRIR40MRoaiZ9nrLOWRH704jVPjM3WmWxs=; b=I88c9d8gK5mhf7I/g2DeiM7lIP8cmT8YAmhvPIWNI4EdZcdmuIY9VsAdoM5AlgDWJm HTvPgVbxVcWg1toR/DClrAvLOVksD0OdRnscXLhBzRe/Z1sw9wFEyKMbp/Anv8GOsktw o7zrKtSYOsBJG/kWqe3P9RGUEv/GRIgh73phlmIdmEaeOowuHsYQoUnUH5VxIL/X8+8Z buk7pLqrsNBjxV+2llG4UijebEsJ5hMRzhgqzJ02LfQ8wz7AWVJYzBN23p99exrf0OjE AiRh2rCQA8SPRDjOFGOkfoXjWjQ5JAd8g3eWiQwkVqs75BI/EnFJN8MW+ig0nuic376O gSRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="Mlwn5C7/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si9038757pgl.202.2018.10.14.19.30.18; Sun, 14 Oct 2018 19:30:34 -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; dkim=pass header.i=@joelfernandes.org header.s=google header.b="Mlwn5C7/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbeJOKNG (ORCPT + 99 others); Mon, 15 Oct 2018 06:13:06 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35436 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbeJOKNF (ORCPT ); Mon, 15 Oct 2018 06:13:05 -0400 Received: by mail-pl1-f196.google.com with SMTP id f8-v6so8527430plb.2 for ; Sun, 14 Oct 2018 19:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FW952t4pDVRIR40MRoaiZ9nrLOWRH704jVPjM3WmWxs=; b=Mlwn5C7/wrQJVd+UiURagcyJO5cpPhr55BJM7UxHL6NOw3OymACNYp4c2gA0YJZu6j LiXx7b0BPNrB4h7lxWOE+QxhnNYiUxCS/vbwgGYJLNHQRd+wdmKFI+L/65HZLYOIVPHd k9rq/tdMyc5n/XSYtCTSuEVrFFG2+l3XvXF9o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FW952t4pDVRIR40MRoaiZ9nrLOWRH704jVPjM3WmWxs=; b=M1BYu7NrJjwctCju58QXFDpGRFXAAOY4E24JBtXMENz8bh/g1r1/T4oGlNKbLKMv9E NvWQlVeNc9q8YtyhFkAQJo8NZpJW6AfQFEWHnQ6K7U8GwAMQte3FSrFzLLBf1q8jNPKz CUyCbd+sAg8V7tfUP2gZ0cx7ppyXScVuJIaUEWrQ4g8F7PrAiS/Fsbf8utjaOb7sVEtv TQ1q5EIDwp3zRtlSQjEVqIahMm8kFNWg5xsf4hryhhnrwg9aoxWYvEVyRvje2CE+AwqC aAhc+aCrBNkwAzEVkOosuJOL/6ujh+y+dasegt0axo4jndQCuHaZL7KbuENMq07dLsp0 KZSA== X-Gm-Message-State: ABuFfoiZg3HbhD11mVeIVgxwa9O2klPGrLh3H3SE/1cZbb6AyOeAu0xg euvAO092rPKvJgq53vmxi+IHuH/6oqc= X-Received: by 2002:a17:902:9004:: with SMTP id a4-v6mr15003989plp.166.1539570596075; Sun, 14 Oct 2018 19:29:56 -0700 (PDT) Received: from joelaf.mtv.corp.google.com ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id z11-v6sm15302474pfd.99.2018.10.14.19.29.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Oct 2018 19:29:54 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , "Paul E. McKenney" Subject: [PATCH] doc: rcu: Fix code listing in performance and scalability requirements Date: Sun, 14 Oct 2018 19:29:42 -0700 Message-Id: <20181015022942.224250-1-joel@joelfernandes.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) --- .../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