linux-sg2042/net/802
Stephen Hemminger a9b3cd7f32 rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER
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>
2011-08-02 04:29:23 -07:00
..
Kconfig net: Add GARP applicant-only participant 2008-07-05 21:26:13 -07:00
Makefile net: Add GARP applicant-only participant 2008-07-05 21:26:13 -07:00
fc.c net: return operator cleanup 2010-09-23 14:33:39 -07:00
fddi.c net: return operator cleanup 2010-09-23 14:33:39 -07:00
garp.c rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER 2011-08-02 04:29:23 -07:00
hippi.c net: return operator cleanup 2010-09-23 14:33:39 -07:00
p8022.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
p8023.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
psnap.c snap: remove one synchronize_net() 2011-05-23 16:29:24 -04:00
stp.c rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER 2011-08-02 04:29:23 -07:00
tr.c net: return operator cleanup 2010-09-23 14:33:39 -07:00