summaryrefslogtreecommitdiffstats
path: root/Documentation/RCU/Design
diff options
context:
space:
mode:
authorJoel Fernandes (Google)2018-10-15 04:29:42 +0200
committerPaul E. McKenney2018-11-12 17:56:25 +0100
commit97949f0176da396c32e7c881cbfbc61642fb1266 (patch)
tree5ecf488f9ece383a3f36a2667e1d086f4ca8ab51 /Documentation/RCU/Design
parentdoc: Remove obsolete (non-)requirement about disabling preemption (diff)
downloadkernel-qcow2-linux-97949f0176da396c32e7c881cbfbc61642fb1266.tar.gz
kernel-qcow2-linux-97949f0176da396c32e7c881cbfbc61642fb1266.tar.xz
kernel-qcow2-linux-97949f0176da396c32e7c881cbfbc61642fb1266.zip
doc: Make listing in RCU perf/scale requirements use rcu_assign_pointer()
The code listing under this section has a quick quiz that says line 19 uses rcu_access_pointer, but the code listing itself instead uses rcu_dereference(). This commit therefore makes the code listing match the quick quiz. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'Documentation/RCU/Design')
-rw-r--r--Documentation/RCU/Design/Requirements/Requirements.html2
1 files changed, 1 insertions, 1 deletions
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 <tt>synchronize_rcu()</tt> as follows:
16 struct foo *p;
17
18 spin_lock(&amp;gp_lock);
-19 p = rcu_dereference(gp);
+19 p = rcu_access_pointer(gp);
20 if (!p) {
21 spin_unlock(&amp;gp_lock);
22 return false;