Skip to content

Commit

Permalink
[NETFILTER]: Remove unnecessary synchronize_net() in nf_register_hook
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 12, 2007
1 parent c3a47ab commit e4ba130
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/netfilter/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e4ba130

Please sign in to comment.