aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fou.c
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-03-05 14:31:47 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-05 10:48:28 -0500
commit6c6c566e6dd80bec6f5bbb9c36e397ed9b109cdb (patch)
tree9066d94b9ff15f257dbedba010e736a379e30408 /net/ipv4/fou.c
parentnet: Convert dccp_v6_ops (diff)
downloadlinux-dev-6c6c566e6dd80bec6f5bbb9c36e397ed9b109cdb.tar.xz
linux-dev-6c6c566e6dd80bec6f5bbb9c36e397ed9b109cdb.zip
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@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv4/fou.c1
1 files changed, 1 insertions, 0 deletions
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)