瀏覽代碼

net: Convert brnf_net_ops

These pernet_operations only unregister nf hooks.
So, they are able to be marked as async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Kirill Tkhai 7 年之前
父節點
當前提交
7ca9e67feb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/bridge/br_netfilter_hooks.c

+ 1 - 0
net/bridge/br_netfilter_hooks.c

@@ -967,6 +967,7 @@ static struct pernet_operations brnf_net_ops __read_mostly = {
 	.exit = brnf_exit_net,
 	.exit = brnf_exit_net,
 	.id   = &brnf_net_id,
 	.id   = &brnf_net_id,
 	.size = sizeof(struct brnf_net),
 	.size = sizeof(struct brnf_net),
+	.async = true,
 };
 };
 
 
 static struct notifier_block brnf_notifier __read_mostly = {
 static struct notifier_block brnf_notifier __read_mostly = {