aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-02-12 11:09:35 -0800
committerDavid S. Miller <davem@davemloft.net>2007-02-12 11:09:35 -0800
commite4ba13088de7fa384087af398df6629fadb363ba (patch)
treed23c034597d54888c8a7fc2c706b6dfe57503db7 /net
parent[NETFILTER]: Properly use RCU in nf_ct_attach (diff)
downloadlinux-dev-e4ba13088de7fa384087af398df6629fadb363ba.tar.xz
linux-dev-e4ba13088de7fa384087af398df6629fadb363ba.zip
[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>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/core.c2
1 files changed, 0 insertions, 2 deletions
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(&reg->list, i->prev);
spin_unlock_bh(&nf_hook_lock);
-
- synchronize_net();
return 0;
}
EXPORT_SYMBOL(nf_register_hook);