]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Improve rcu_assign_pointer() and RCU_INIT_POINTER() documentation
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 1 Aug 2011 05:33:02 +0000 (22:33 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 10 Aug 2011 02:28:42 +0000 (19:28 -0700)
commit896cb6e46c65e8008c33e97339abb59bf2ef0f3b
tree6f1dfa5a85f3adf83584a57ae468599269b2e610
parenta7590ddfc2c855e75111ef18147a86578fe136e4
rcu: Improve rcu_assign_pointer() and RCU_INIT_POINTER() documentation

The differences between rcu_assign_pointer() and RCU_INIT_POINTER() are
subtle, and it is easy to use the the cheaper RCU_INIT_POINTER() when
the more-expensive rcu_assign_pointer() should have been used instead.
The consequences of this mistake are quite severe.

This commit therefore carefully lays out the situations in which it it
permissible to use RCU_INIT_POINTER().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h