diff options
author | David Howells <dhowells@redhat.com> | 2019-05-03 18:26:55 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-05-15 17:35:54 +0100 |
commit | d0660f0b3b7d1760d1ab60ec8e9d0de52e885207 (patch) | |
tree | 9ab40b7b55492fbaeede2311afb643c5cadf2b75 /fs/nfs | |
parent | ca1cbbdce92bc2bfdc17e4f70ad41f6e6af2d03f (diff) | |
download | linux-d0660f0b3b7d1760d1ab60ec8e9d0de52e885207.tar.bz2 |
dns_resolver: Allow used keys to be invalidated
Allow used DNS resolver keys to be invalidated after use if the caller is
doing its own caching of the results. This reduces the amount of resources
required.
Fix AFS to invalidate DNS results to kill off permanent failure records
that get lodged in the resolver keyring and prevent future lookups from
happening.
Fixes: 0a5143f2f89c ("afs: Implement VL server rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/dns_resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c index a7d3df85736d..e6a700f01452 100644 --- a/fs/nfs/dns_resolve.c +++ b/fs/nfs/dns_resolve.c @@ -22,7 +22,7 @@ ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, char *ip_addr = NULL; int ip_len; - ip_len = dns_query(NULL, name, namelen, NULL, &ip_addr, NULL); + ip_len = dns_query(NULL, name, namelen, NULL, &ip_addr, NULL, false); if (ip_len > 0) ret = rpc_pton(net, ip_addr, ip_len, sa, salen); else |