[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <152024950718.3454.9927507099603567662.stgit@localhost.localdomain>
Date: Mon, 05 Mar 2018 14:31:47 +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 08/12] net: Convert fou_net_ops
These pernet_operations initialize and destroy
pernet net_generic(net, fou_net_id) list.
The rest of net_generic(net, fou_net_id) accesses
may happen after netlink message, and in-tree
pernet_operations do not send FOU_GENL_NAME messages.
So, these pernet_operations are safe to be marked
as async.
Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
---
net/ipv4/fou.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c
index 1540db65241a..d3e1a9af478b 100644
--- a/net/ipv4/fou.c
+++ b/net/ipv4/fou.c
@@ -1081,6 +1081,7 @@ static struct pernet_operations fou_net_ops = {
.exit = fou_exit_net,
.id = &fou_net_id,
.size = sizeof(struct fou_net),
+ .async = true,
};
static int __init fou_init(void)
Powered by blists - more mailing lists