[NETFILTER]: Remove unnecessary synchronize_net() in nf_register_hook
authorPatrick McHardy <kaber@trash.net>
Mon, 12 Feb 2007 19:09:35 +0000 (11:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2007 19:09:35 +0000 (11:09 -0800)
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>
net/netfilter/core.c

index ad24d0c..a66bd6a 100644 (file)
@@ -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);