From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from osg.samsung.com ([64.30.133.232]:43995 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752691AbeB0KYv (ORCPT ); Tue, 27 Feb 2018 05:24:51 -0500 Subject: Re: [PATCH net-next 20/28] net: Convert cfg802154_pernet_ops To: Kirill Tkhai , davem@davemloft.net, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, netdev@vger.kernel.org, kvalo@codeaurora.org, edumazet@google.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, mostrows@earthlink.net, alex.aring@gmail.com, avagin@virtuozzo.com References: <151964991129.28549.5478247975928036472.stgit@localhost.localdomain> <151965015780.28549.18342026229368962135.stgit@localhost.localdomain> From: Stefan Schmidt Message-ID: Date: Tue, 27 Feb 2018 11:24:44 +0100 MIME-Version: 1.0 In-Reply-To: <151965015780.28549.18342026229368962135.stgit@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Hello. On 02/26/2018 02:02 PM, Kirill Tkhai wrote: > 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 > --- > net/ieee802154/core.c | 1 + > 1 file changed, 1 insertion(+) > > 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) > Acked-by: Stefan Schmidt regards Stefan Schmidt