mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +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
|
@ -47,7 +47,6 @@ static __net_init int setup_net(struct net *net)
|
|||
goto out;
|
||||
|
||||
ng->len = INITIAL_NET_GEN_PTRS;
|
||||
INIT_RCU_HEAD(&ng->rcu);
|
||||
rcu_assign_pointer(net->gen, ng);
|
||||
|
||||
error = 0;
|
||||
|
@ -446,7 +445,6 @@ int net_assign_generic(struct net *net, int id, void *data)
|
|||
*/
|
||||
|
||||
ng->len = id;
|
||||
INIT_RCU_HEAD(&ng->rcu);
|
||||
memcpy(&ng->ptr, &old_ng->ptr, old_ng->len);
|
||||
|
||||
rcu_assign_pointer(net->gen, ng);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue