mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
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>
This commit is contained in:
parent
def8b4faff
commit
93adcc80f3
5 changed files with 1 additions and 14 deletions
|
@ -1386,7 +1386,6 @@ void ip_rt_redirect(__be32 old_gw, __be32 daddr, __be32 new_gw,
|
|||
|
||||
/* Copy all the information. */
|
||||
*rt = *rth;
|
||||
INIT_RCU_HEAD(&rt->u.dst.rcu_head);
|
||||
rt->u.dst.__use = 1;
|
||||
atomic_set(&rt->u.dst.__refcnt, 1);
|
||||
rt->u.dst.child = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue