commit | 93728af0a1f63e13d6f7f56a434965b05b8b2abd | [log] [tgz] |
---|---|---|
author | Michalis Kokologiannakis <mixaskok@gmail.com> | Mon Mar 20 22:38:35 2017 +0100 |
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Wed Apr 12 08:23:42 2017 -0700 |
tree | 51e775a3be39b18e623c5726eece18b7bcc5a92c | |
parent | 066bb1c84aa430d15f36070471cbfe8976631cce [diff] |
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>