diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-26 16:02:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-27 11:01:38 -0500 |
commit | f17c9bf07f9cde430e5c566a5383875ffba104cf (patch) | |
tree | f0d84ebae2041a728cd20784e6adba315523991e /net/ieee802154 | |
parent | 989d9812b7cabbda2e82f47e52dbc48ed4e40ce5 (diff) |
net: Convert cfg802154_pernet_ops
These pernet_operations have only exit method, which
moves devices from cfg802154_rdev_list to init_net.
This may occur in any time from nl802154_wpan_phy_netns(),
so we are nice with rtnl_lock() synchronization.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ieee802154/core.c b/net/ieee802154/core.c index cb7176cd4cd6..9104943c15ba 100644 --- a/net/ieee802154/core.c +++ b/net/ieee802154/core.c @@ -345,6 +345,7 @@ static void __net_exit cfg802154_pernet_exit(struct net *net) static struct pernet_operations cfg802154_pernet_ops = { .exit = cfg802154_pernet_exit, + .async = true, }; static int __init wpan_phy_class_init(void) |