]> 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>
Tue, 6 Sep 2011 18:27:03 +0000 (11:27 -0700)
commitb52154b66dba6577fd1fbc8129e31bd034d23c92
tree6a531b0565e8e34d19d8981588d08c743497d5a2
parentc98e50b6d33c1683c18c7404d41a55b6e93c09dd
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