Commit 194b95d2 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Convert netlink_net_ops

The methods of netlink_net_ops create and destroy "netlink"
file, which are not interesting for foreigh pernet_operations.
So, netlink_net_ops may safely be made async.
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: default avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ff291d00
...@@ -2723,6 +2723,7 @@ static void __init netlink_add_usersock_entry(void) ...@@ -2723,6 +2723,7 @@ static void __init netlink_add_usersock_entry(void)
static struct pernet_operations __net_initdata netlink_net_ops = { static struct pernet_operations __net_initdata netlink_net_ops = {
.init = netlink_net_init, .init = netlink_net_init,
.exit = netlink_net_exit, .exit = netlink_net_exit,
.async = true,
}; };
static inline u32 netlink_hash(const void *data, u32 len, u32 seed) static inline u32 netlink_hash(const void *data, u32 len, u32 seed)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment