diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-13 10:28:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-13 16:36:06 +0100 |
commit | 194b95d2166661f890dca5ef3b952c73622eb4e5 (patch) | |
tree | 1953113269c064af882e92a77b43e2b53f75992f /net/netlink/af_netlink.c | |
parent | net: Convert net_defaults_ops (diff) | |
download | linux-194b95d2166661f890dca5ef3b952c73622eb4e5.tar.xz linux-194b95d2166661f890dca5ef3b952c73622eb4e5.zip |
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: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r-- | net/netlink/af_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 3c8af14330b5..b3065908e146 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -2723,6 +2723,7 @@ static void __init netlink_add_usersock_entry(void) static struct pernet_operations __net_initdata netlink_net_ops = { .init = netlink_net_init, .exit = netlink_net_exit, + .async = true, }; static inline u32 netlink_hash(const void *data, u32 len, u32 seed) |