瀏覽代碼

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 <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Kirill Tkhai 7 年之前
父節點
當前提交
c9d8fb9135
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/netfilter/nf_log.c

+ 1 - 0
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 = {
 static struct pernet_operations nf_log_net_ops = {
 	.init = nf_log_net_init,
 	.init = nf_log_net_init,
 	.exit = nf_log_net_exit,
 	.exit = nf_log_net_exit,
+	.async = true,
 };
 };
 
 
 int __init netfilter_log_init(void)
 int __init netfilter_log_init(void)