From: Kirill Tkhai Date: Tue, 13 Feb 2018 09:27:23 +0000 (+0300) Subject: net: Convert netfilter_net_ops X-Git-Tag: v4.17-rc1~148^2~446^2~23 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9549929923738d14dc450f0427a4b98ac3e8aff2;p=uclinux-h8%2Flinux.git net: Convert netfilter_net_ops Methods netfilter_net_init() and netfilter_net_exit() initialize net::nf::hooks and change net-related proc directory of net. Another pernet_operations are not interested in forein net::nf::hooks or proc entries, so it's safe to make them executed in parallel with methods of other pernet operations. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin Signed-off-by: David S. Miller --- diff --git a/net/netfilter/core.c b/net/netfilter/core.c index 0f6b8172fb9a..d72cc786c7b7 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -629,6 +629,7 @@ static void __net_exit netfilter_net_exit(struct net *net) static struct pernet_operations netfilter_net_ops = { .init = netfilter_net_init, .exit = netfilter_net_exit, + .async = true, }; int __init netfilter_init(void)