diff options
author | David Howells <dhowells@redhat.com> | 2019-05-07 16:06:36 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-05-16 13:58:23 +0200 |
commit | d5c32c89b208e39a39cd8639aa21c012ce0daf4d (patch) | |
tree | 856d5540f898c041c51f8868e53381f37d2ff0b7 /fs/dax.c | |
parent | Add wait_var_event_interruptible() (diff) | |
download | linux-d5c32c89b208e39a39cd8639aa21c012ce0daf4d.tar.xz linux-d5c32c89b208e39a39cd8639aa21c012ce0daf4d.zip |
afs: Fix cell DNS lookup
Currently, once configured, AFS cells are looked up in the DNS at regular
intervals - which is a waste of resources if those cells aren't being
used. It also leads to a problem where cells preloaded, but not
configured, before the network is brought up end up effectively statically
configured with no VL servers and are unable to get any.
Fix this by not doing the DNS lookup until the first time a cell is
touched. It is waited for if we don't have any cached records yet,
otherwise the DNS lookup to maintain the record is done in the background.
This has the downside that the first time you touch a cell, you now have to
wait for the upcall to do the required DNS lookups rather than them already
being cached.
Further, the record is not replaced if the old record has at least one
server in it and the new record doesn't have any.
Fixes: 0a5143f2f89c ("afs: Implement VL server rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/dax.c')
0 files changed, 0 insertions, 0 deletions