From: Patrick McHardy Date: Mon, 12 Feb 2007 19:09:35 +0000 (-0800) Subject: [NETFILTER]: Remove unnecessary synchronize_net() in nf_register_hook X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e4ba13088de7fa384087af398df6629fadb363ba;p=linux-beck.git [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 Signed-off-by: David S. Miller --- diff --git a/net/netfilter/core.c b/net/netfilter/core.c index ad24d0c005e2..a66bd6af44fa 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -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);