Commit 9c537ca1 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

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: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 753d525a
...@@ -1340,6 +1340,7 @@ static void __net_exit cfg80211_pernet_exit(struct net *net) ...@@ -1340,6 +1340,7 @@ static void __net_exit cfg80211_pernet_exit(struct net *net)
static struct pernet_operations cfg80211_pernet_ops = { static struct pernet_operations cfg80211_pernet_ops = {
.exit = cfg80211_pernet_exit, .exit = cfg80211_pernet_exit,
.async = true,
}; };
static int __init cfg80211_init(void) static int __init cfg80211_init(void)
......
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