From: Kirill Tkhai Date: Tue, 13 Feb 2018 09:27:31 +0000 (+0300) Subject: net: Convert nf_log_net_ops X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c9d8fb91351fe1514731b7f6d24d4decc0028978;p=linux.git net: Convert nf_log_net_ops The pernet_operations would have had a problem in parallel execution with others, if init_net had been able to released. But it's not, and the rest is safe for that. There is memory allocation, which nobody else interested in, and sysctl registration. So, we make them async. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index c2c1b16b75388..1ba3da51050d9 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c @@ -577,6 +577,7 @@ static void __net_exit nf_log_net_exit(struct net *net) static struct pernet_operations nf_log_net_ops = { .init = nf_log_net_init, .exit = nf_log_net_exit, + .async = true, }; int __init netfilter_log_init(void)