summaryrefslogtreecommitdiffstats
path: root/lib/percpu_counter.c
diff options
context:
space:
mode:
authorMichalis Kokologiannakis <mixaskok@gmail.com>2017-03-20 22:38:35 +0100
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-12 08:23:42 -0700
commit93728af0a1f63e13d6f7f56a434965b05b8b2abd (patch)
tree51e775a3be39b18e623c5726eece18b7bcc5a92c /lib/percpu_counter.c
parent066bb1c84aa430d15f36070471cbfe8976631cce (diff)
downloadop-kernel-dev-93728af0a1f63e13d6f7f56a434965b05b8b2abd.zip
op-kernel-dev-93728af0a1f63e13d6f7f56a434965b05b8b2abd.tar.gz
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>
Diffstat (limited to 'lib/percpu_counter.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud