net: Convert fou_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 5 Mar 2018 11:31:47 +0000 (14:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2018 15:48:28 +0000 (10:48 -0500)
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>
net/ipv4/fou.c

index 1540db65241a6fd4d96b00546f13a3e3d3cd1815..d3e1a9af478b0b243dedbe200cf8b4bc0430797b 100644 (file)
@@ -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)