From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Tkhai Subject: [PATCH net-next v1 3/4] net: Convert nfs4_dns_resolver_ops Date: Mon, 26 Mar 2018 12:29:04 +0300 Message-ID: <152205654436.6058.5257383048557457339.stgit@localhost.localdomain> References: <152205594525.6058.12471686205983419325.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: davem@davemloft.net, anna.schumaker@netapp.com, trond.myklebust@primarydata.com, ktkhai@virtuozzo.com, netdev@vger.kernel.org Return-path: Received: from mail-db5eur01on0098.outbound.protection.outlook.com ([104.47.2.98]:35886 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751840AbeCZJ3K (ORCPT ); Mon, 26 Mar 2018 05:29:10 -0400 In-Reply-To: <152205594525.6058.12471686205983419325.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: These pernet_operations look similar to rpcsec_gss_net_ops, they just create and destroy another cache. Also they create and destroy directory. So, they also look safe to be async. Signed-off-by: Kirill Tkhai Acked-by: Anna Schumaker --- fs/nfs/dns_resolve.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c index 060c658eab66..e90bd69ab653 100644 --- a/fs/nfs/dns_resolve.c +++ b/fs/nfs/dns_resolve.c @@ -410,6 +410,7 @@ static void nfs4_dns_net_exit(struct net *net) static struct pernet_operations nfs4_dns_resolver_ops = { .init = nfs4_dns_net_init, .exit = nfs4_dns_net_exit, + .async = true, }; static int rpc_pipefs_event(struct notifier_block *nb, unsigned long event,