]> git.baikalelectronics.ru Git - kernel.git/commit
net: Convert cfg80211_pernet_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Feb 2018 08:48:14 +0000 (11:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 19:19:09 +0000 (14:19 -0500)
commit2381afbafb754e1758c3e1c45cc66eca9d1d028d
tree80ee0bc1f68290c8b0851e06eb0bd45e793684a4
parent26a2e28b3ca0162248199c9e26c02588f2c18b16
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>
net/wireless/core.c