rcu: No ordering for rcu_assign_pointer() of NULL
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 May 2016 01:46:54 +0000 (18:46 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 15 Jun 2016 22:31:28 +0000 (15:31 -0700)
commit3a37f7275cda5ad25c1fe9be8f20c76c60d175fa
tree89e64cf1b726c48daf24663dd15be033589c7dba
parent810ce8b5df1c8338065f2ae1d2ec08cc566fbb8b
rcu: No ordering for rcu_assign_pointer() of NULL

This commit does a compile-time check for rcu_assign_pointer() of NULL,
and uses WRITE_ONCE() rather than smp_store_release() in that case.

Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h