Преглед изворни кода

net: Convert nfs4_dns_resolver_ops

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 <ktkhai@virtuozzo.com>
Acked-by: Anna Schumaker <Anna.Schumaker@netapp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Kirill Tkhai пре 7 година
родитељ
комит
436de50094
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      fs/nfs/dns_resolve.c

+ 1 - 0
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 = {
 static struct pernet_operations nfs4_dns_resolver_ops = {
 	.init = nfs4_dns_net_init,
 	.init = nfs4_dns_net_init,
 	.exit = nfs4_dns_net_exit,
 	.exit = nfs4_dns_net_exit,
+	.async = true,
 };
 };
 
 
 static int rpc_pipefs_event(struct notifier_block *nb, unsigned long event,
 static int rpc_pipefs_event(struct notifier_block *nb, unsigned long event,