net: Convert xfrm_user_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Wed, 7 Mar 2018 09:39:14 +0000 (12:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 17:36:43 +0000 (12:36 -0500)
These pernet_operations create and destroy net::xfrm::nlsk
socket of NETLINK_XFRM. There is only entry point, where
it's dereferenced, it's xfrm_user_rcv_msg(). There is no
in-kernel senders to this socket.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c

index 7f52b8eb177db4978750caed402aa34f6a31d7b4..aff2e84ec761b1f01218fa3f763de24ac87f98b3 100644 (file)
@@ -3258,6 +3258,7 @@ static void __net_exit xfrm_user_net_exit(struct list_head *net_exit_list)
 static struct pernet_operations xfrm_user_net_ops = {
        .init       = xfrm_user_net_init,
        .exit_batch = xfrm_user_net_exit,
+       .async      = true,
 };
 
 static int __init xfrm_user_init(void)