aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-28 16:25:09 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-28 16:25:09 -0400
commit93adcc80f3288f1827baf6f821af818f6eeef7f9 (patch)
treed53faa5267421764ebe8f1d5e83e6eb5bb7ddea6 /net/ipv4/route.c
parentdef8b4faff5ca349beafbbfeb2c51f3602a6ef3a (diff)
net: don't use INIT_RCU_HEAD
call_rcu() will unconditionally rewrite RCU head anyway. Applies to struct neigh_parms struct neigh_table struct net struct cipso_v4_doi struct in_ifaddr struct in_device rt->u.dst Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index ffb2c5705432..e59b4dcf6778 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1386,7 +1386,6 @@ void ip_rt_redirect(__be32 old_gw, __be32 daddr, __be32 new_gw,
1386 1386
1387 /* Copy all the information. */ 1387 /* Copy all the information. */
1388 *rt = *rth; 1388 *rt = *rth;
1389 INIT_RCU_HEAD(&rt->u.dst.rcu_head);
1390 rt->u.dst.__use = 1; 1389 rt->u.dst.__use = 1;
1391 atomic_set(&rt->u.dst.__refcnt, 1); 1390 atomic_set(&rt->u.dst.__refcnt, 1);
1392 rt->u.dst.child = NULL; 1391 rt->u.dst.child = NULL;