Skip to content

Commit 436de50

Browse files
Kirill Tkhaidavem330
authored andcommitted
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 <[email protected]> Acked-by: Anna Schumaker <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5e804a6 commit 436de50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfs/dns_resolve.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ static void nfs4_dns_net_exit(struct net *net)
410410
static struct pernet_operations nfs4_dns_resolver_ops = {
411411
.init = nfs4_dns_net_init,
412412
.exit = nfs4_dns_net_exit,
413+
.async = true,
413414
};
414415

415416
static int rpc_pipefs_event(struct notifier_block *nb, unsigned long event,

0 commit comments

Comments
 (0)