summaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-13 12:28:00 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-13 10:36:06 -0500
commit194b95d2166661f890dca5ef3b952c73622eb4e5 (patch)
tree1953113269c064af882e92a77b43e2b53f75992f /net/netlink
parentff291d005a988aaa7d73daf44c3d04585e9f0637 (diff)
downloadop-kernel-dev-194b95d2166661f890dca5ef3b952c73622eb4e5.zip
op-kernel-dev-194b95d2166661f890dca5ef3b952c73622eb4e5.tar.gz
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')
-rw-r--r--net/netlink/af_netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 3c8af14..b306590 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)
OpenPOWER on IntegriCloud