projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a47ab
)
[NETFILTER]: Remove unnecessary synchronize_net() in nf_register_hook
author
Patrick McHardy
<kaber@trash.net>
Mon, 12 Feb 2007 19:09:35 +0000
(11:09 -0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/netfilter/core.c
b/net/netfilter/core.c
index ad24d0c005e2a53beadd589745e38b895d32eb6f..a66bd6af44fa918e57938df76db41a3b4fd6d4be 100644
(file)
--- 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);