]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: Convert lowpan_frags_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Mar 2018 11:45:37 +0000 (14:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:11:29 +0000 (11:11 -0400)
These pernet_operations register and unregister sysctl.
Also, there is inet_frags_exit_net() called in exit method,
which has to be safe after 5c7de6c2585e "net: Fix hlist
corruptions in inet_evict_bucket()".

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan/reassembly.c

index 85bf86ad6b1801066a4252af18b5b511070a9e08..a9ccb1322f6933a0c0a7d2ce1edc73476a3d18cc 100644 (file)
@@ -603,6 +603,7 @@ static void __net_exit lowpan_frags_exit_net(struct net *net)
 static struct pernet_operations lowpan_frags_ops = {
        .init = lowpan_frags_init_net,
        .exit = lowpan_frags_exit_net,
+       .async = true,
 };
 
 int __init lowpan_net_frag_init(void)