rcu: Make bugginess of code sample more evident
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 12 Feb 2013 15:56:27 +0000 (07:56 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 12 Mar 2013 21:09:01 +0000 (14:09 -0700)
commit4357fb570b3709c145384065d04b698a30dc722e
tree2a245674b59344110301402516240d5e77b5bb18
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
rcu: Make bugginess of code sample more evident

One of the code samples in whatisRCU.txt shows a bug, but someone scanning
the document quickly might mistake it for a valid use of RCU.  Add some
screaming comments to help keep speed-readers on track.

Reported-by: Nathan Zimmer <nzimmer@sgi.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/RCU/whatisRCU.txt