]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net: Convert nf_log_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 13 Feb 2018 09:27:31 +0000 (12:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Feb 2018 15:36:06 +0000 (10:36 -0500)
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 <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_log.c

index c2c1b16b75388516f7f455e4c389d8b1f85fdbce..1ba3da51050d9c5362db4d4fbbeaf2f992365fc2 100644 (file)
@@ -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)