From e4ba13088de7fa384087af398df6629fadb363ba Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Mon, 12 Feb 2007 11:09:35 -0800 Subject: [PATCH] [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 --- net/netfilter/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/netfilter/core.c b/net/netfilter/core.c index ad24d0c005..a66bd6af44 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); -- 2.39.5