[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <152024952627.3454.3208284119313836669.stgit@localhost.localdomain>
Date: Mon, 05 Mar 2018 14:32:06 +0300
From: Kirill Tkhai <ktkhai@...tuozzo.com>
To: pablo@...filter.org, kadlec@...ckhole.kfki.hu, fw@...len.de,
stephen@...workplumber.org, davem@...emloft.net,
dmitry.tarnyagin@...kless.no, socketcan@...tkopp.net,
mkl@...gutronix.de, gerrit@....abdn.ac.uk, yoshfuji@...ux-ipv6.org,
johannes.berg@...el.com, garsilva@...eddedor.com,
ross.lagerwall@...rix.com, aconole@...heb.org,
netdev@...r.kernel.org, ktkhai@...tuozzo.com
Subject: [PATCH net-next 10/12] net: Convert nf_conntrack_net_ops
These pernet_operations register and unregister sysctl and /proc
entries. Exit batch method also waits till all per-net conntracks
are dead. Thus, they are safe to be marked as async.
Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
---
net/netfilter/nf_conntrack_standalone.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c
index 9123fdec5e14..3cdce391362e 100644
--- a/net/netfilter/nf_conntrack_standalone.c
+++ b/net/netfilter/nf_conntrack_standalone.c
@@ -705,6 +705,7 @@ static void nf_conntrack_pernet_exit(struct list_head *net_exit_list)
static struct pernet_operations nf_conntrack_net_ops = {
.init = nf_conntrack_pernet_init,
.exit_batch = nf_conntrack_pernet_exit,
+ .async = true,
};
static int __init nf_conntrack_standalone_init(void)
Powered by blists - more mailing lists