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-Tag: v2.6.21-rc1~274^2~1^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e4ba13088de7fa384087af398df6629fadb363ba;p=linux-2.6-omap-h63xx.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 ad24d0c005e..a66bd6af44f 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);