net: Convert fib_* pernet_operations, registered via subsys_initcall
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 13 Feb 2018 09:29:03 +0000 (12:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Feb 2018 15:36:07 +0000 (10:36 -0500)
Both of them create and initialize lists, which are not touched
by another foreing pernet_operations.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_notifier.c
net/core/fib_rules.c

index 0c048bdeb0160f1d7f5865e59390f3824c8a1fe8..5ace0705a3f918783eedd080651a5c29312006ed 100644 (file)
@@ -171,6 +171,7 @@ static void __net_exit fib_notifier_net_exit(struct net *net)
 static struct pernet_operations fib_notifier_net_ops = {
        .init = fib_notifier_net_init,
        .exit = fib_notifier_net_exit,
+       .async = true,
 };
 
 static int __init fib_notifier_init(void)
index 98e1066c3d551df066fd7681f197718f75afb251..cb071b8e8d17bbfe7b68132462b937629cc2115b 100644 (file)
@@ -1030,6 +1030,7 @@ static void __net_exit fib_rules_net_exit(struct net *net)
 static struct pernet_operations fib_rules_net_ops = {
        .init = fib_rules_net_init,
        .exit = fib_rules_net_exit,
+       .async = true,
 };
 
 static int __init fib_rules_init(void)