doc: Update the comparisons rule in rcu_dereference.txt
authorMichalis Kokologiannakis <mixaskok@gmail.com>
Mon, 20 Mar 2017 21:38:35 +0000 (22:38 +0100)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 12 Apr 2017 15:23:42 +0000 (08:23 -0700)
commit93728af0a1f63e13d6f7f56a434965b05b8b2abd
tree51e775a3be39b18e623c5726eece18b7bcc5a92c
parent066bb1c84aa430d15f36070471cbfe8976631cce
doc: Update the comparisons rule in rcu_dereference.txt

When an RCU-protected pointer is fetched but never dereferenced
rcu_access_pointer() should be used in place of rcu_dereference().
This commit explicitly records this very fact in Documentation/
RCU/rcu_dereference.txt, in order to prevent the usage of
rcu_dereference() in comparisons.

Signed-off-by: Michalis Kokologiannakis <mixaskok@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/RCU/rcu_dereference.txt