rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 1 Aug 2011 16:19:00 +0000 (16:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Aug 2011 11:29:23 +0000 (04:29 -0700)
When assigning a NULL value to an RCU protected pointer, no barrier
is needed. The rcu_assign_pointer, used to handle that but will soon
change to not handle the special case.

Convert all rcu_assign_pointer of NULL value.

//smpl
@@ expression P; @@

- rcu_assign_pointer(P, NULL)
+ RCU_INIT_POINTER(P, NULL)

// </smpl>

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found