summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-19 11:48:14 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-19 14:19:09 -0500
commit9c537ca1554e5d7db69a3b606801a2101e02edda (patch)
tree80ee0bc1f68290c8b0851e06eb0bd45e793684a4 /net/wireless
parent753d525a08f2e18d50da9a909d48ecb7596683b3 (diff)
downloadlinux-9c537ca1554e5d7db69a3b606801a2101e02edda.tar.gz
linux-9c537ca1554e5d7db69a3b606801a2101e02edda.tar.bz2
linux-9c537ca1554e5d7db69a3b606801a2101e02edda.zip
net: Convert cfg80211_pernet_ops
This patch finishes converting pernet_operations registered in net/wireless directory. These pernet_operations have only exit method, which moves devices to init_net. This action is not pernet_operations-specific, and function cfg80211_switch_netns() may be called all time during the system life. All necessary protection against concurrent cfg80211_pernet_exit() is made by rtnl_lock(). So, cfg80211_pernet_ops is able to be marked as async. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index a6f3cac8c640..670aa229168a 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -1340,6 +1340,7 @@ static void __net_exit cfg80211_pernet_exit(struct net *net)
static struct pernet_operations cfg80211_pernet_ops = {
.exit = cfg80211_pernet_exit,
+ .async = true,
};
static int __init cfg80211_init(void)