afs: Don't use probe running state to make decisions outside probe code
authorDavid Howells <dhowells@redhat.com>
Sat, 2 May 2020 12:39:57 +0000 (13:39 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 4 Jun 2020 14:37:58 +0000 (15:37 +0100)
commitf3c130e6e6d15822e1553531f91ecc8f3375bac3
tree01da08ef80e11a61a4b1fc67bbb1d2f0095fa4f5
parentf11a016a852f32e9c991baf6a036390eac5b4266
afs: Don't use probe running state to make decisions outside probe code

Don't use the running state for fileserver probes to make decisions about
which server to use as the state is cleared at the start of a probe and
also intermediate values might be misleading.

Instead, add a separate 'latest known' rtt in the afs_server struct and a
flag to indicate if the server is known to be responding and update these
as and when we know what to change them to.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/fs_probe.c
fs/afs/internal.h
fs/afs/rotate.c
fs/afs/server.c