summaryrefslogtreecommitdiffstats
path: root/net/ipv6/reassembly.c
diff options
context:
space:
mode:
authorKirill Tkhai2018-02-19 09:50:37 +0100
committerDavid S. Miller2018-02-19 20:19:11 +0100
commit5fc094f5b8c9b8e5012b7ccf303be3b123563a58 (patch)
tree8ec9f2edddea729aae4b5d9cffa729c5a877c378 /net/ipv6/reassembly.c
parentnet: Convert fib6_net_ops, ipv6_addr_label_ops and ip6_segments_ops (diff)
downloadkernel-qcow2-linux-5fc094f5b8c9b8e5012b7ccf303be3b123563a58.tar.gz
kernel-qcow2-linux-5fc094f5b8c9b8e5012b7ccf303be3b123563a58.tar.xz
kernel-qcow2-linux-5fc094f5b8c9b8e5012b7ccf303be3b123563a58.zip
net: Convert ip6_frags_ops
Exit methods calls inet_frags_exit_net() with global ip6_frags as argument. So, after we make the pernet_operations async, a pair of exit methods may be called to iterate this hash table. Since there is inet_frag_worker(), which already may work in parallel with inet_frags_exit_net(), and it can make the same cleanup, that inet_frags_exit_net() does, it's safe. So we may mark these pernet_operations as async. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/reassembly.c')
-rw-r--r--net/ipv6/reassembly.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c
index afbc000ad4f2..b5da69c83123 100644
--- a/net/ipv6/reassembly.c
+++ b/net/ipv6/reassembly.c
@@ -733,6 +733,7 @@ static void __net_exit ipv6_frags_exit_net(struct net *net)
static struct pernet_operations ip6_frags_ops = {
.init = ipv6_frags_init_net,
.exit = ipv6_frags_exit_net,
+ .async = true,
};
int __init ipv6_frag_init(void)