]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[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 ad24d0c005e2a53beadd589745e38b895d32eb6f..a66bd6af44fa918e57938df76db41a3b4fd6d4be 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);