]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: Convert sysctl creating and destroying pernet_operations
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 13:00:22 +0000 (16:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:01:36 +0000 (11:01 -0500)
These pernet_operations create and destroy sysctl tables,
and they are able to be executed in parallel with any others:

ip_vs_lblc_ops
ip_vs_lblcr_ops

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/ipvs/ip_vs_lblc.c
net/netfilter/ipvs/ip_vs_lblcr.c

index d625179de485b0324d862f78cf6db7764609404e..6a340c94c4b88e1e41e4f5cd30a1fb766d36e198 100644 (file)
@@ -604,6 +604,7 @@ static void __net_exit __ip_vs_lblc_exit(struct net *net) { }
 static struct pernet_operations ip_vs_lblc_ops = {
        .init = __ip_vs_lblc_init,
        .exit = __ip_vs_lblc_exit,
+       .async = true,
 };
 
 static int __init ip_vs_lblc_init(void)
index 84c57b62a5887b433b672d0d71c681bbf9b11a59..0627881128da1359cd4eee4864e522f9d1e2bd55 100644 (file)
@@ -789,6 +789,7 @@ static void __net_exit __ip_vs_lblcr_exit(struct net *net) { }
 static struct pernet_operations ip_vs_lblcr_ops = {
        .init = __ip_vs_lblcr_init,
        .exit = __ip_vs_lblcr_exit,
+       .async = true,
 };
 
 static int __init ip_vs_lblcr_init(void)