Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e4ba13088de7fa384087af398df6629fadb363ba
Commit:     e4ba13088de7fa384087af398df6629fadb363ba
Parent:     c3a47ab3e5ad62601449e4e5401352271b777e28
Author:     Patrick McHardy <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 12 11:09:35 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Feb 12 11:09:35 2007 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/netfilter/core.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/core.c b/net/netfilter/core.c
index ad24d0c..a66bd6a 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to