summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-14 19:30:28 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-14 19:30:28 +0100
commit1d4c46ed1088f40315695bc2de12bddc35b536a1 (patch)
tree104cfe0c474b1365082552e7a85e24e93cc07321 /kernel
parentfac5c2a3607058f61a7d142852d4376bd11bb5ec (diff)
There is no need to call synchronize_net() at swapping.
Ongoing add/del can happen to referenced sets and delete can be issued to unreferenced sets. So the bogus call to synchronize_net() can safely be removed.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/ip_set_core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/ip_set_core.c b/kernel/ip_set_core.c
index 21cfc0f..4634fd6 100644
--- a/kernel/ip_set_core.c
+++ b/kernel/ip_set_core.c
@@ -825,10 +825,6 @@ ip_set_swap(struct sock *ctnl, struct sk_buff *skb,
ip_set_list[from_id] = to;
ip_set_list[to_id] = from;
- /* Avoid possible race between ongoing slow add/del in kernel space
- * and next destroy command. */
- synchronize_net();
-
return 0;
}