From: Kirill Tkhai Date: Mon, 26 Feb 2018 13:02:37 +0000 (+0300) Subject: net: Convert cfg802154_pernet_ops X-Git-Tag: v4.19~1326^2~354^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f17c9bf07f9cde430e5c566a5383875ffba104cf;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Stefan Schmidt Signed-off-by: David S. Miller --- diff --git a/net/ieee802154/core.c b/net/ieee802154/core.c index cb7176c..9104943 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)