]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Don't use VL probe running state to make decisions outside probe code
authorDavid Howells <dhowells@redhat.com>
Wed, 19 Aug 2020 14:27:17 +0000 (15:27 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 20 Aug 2020 17:21:28 +0000 (18:21 +0100)
commitfd8569e9c050c90940ebbc1c5b66f2102f5e5585
treefcd9268473163fbca8d549a2f78fffa78b4b850e
parent1cdabba4b28be8827fe70b13d150f9badc61fc4c
afs: Don't use VL probe running state to make decisions outside probe code

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

Instead, add a separate 'latest known' rtt in the afs_vlserver 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.

Fixes: b6139ef5ddf3 ("afs: Probe multiple fileservers simultaneously")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/internal.h
fs/afs/proc.c
fs/afs/vl_list.c
fs/afs/vl_probe.c
fs/afs/vl_rotate.c