mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
[NETFILTER]: Remove unnecessary synchronize_net() in nf_register_hook
We're only adding to the list, no need to synchronize. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c3a47ab3e5
commit
e4ba13088d
@ -69,8 +69,6 @@ int nf_register_hook(struct nf_hook_ops *reg)
|
||||
}
|
||||
list_add_rcu(®->list, i->prev);
|
||||
spin_unlock_bh(&nf_hook_lock);
|
||||
|
||||
synchronize_net();
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(nf_register_hook);
|
||||
|
Loading…
Reference in New Issue
Block a user