summaryrefslogtreecommitdiff
path: root/fs/afs/vl_rotate.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-08-20 17:01:54 +0300
committerDavid Howells <dhowells@redhat.com>2020-08-20 20:21:28 +0300
commitfb72cd3d484ce548597c75ebeecc70483fe8bb6e (patch)
treee68a4dd1c9404059d5d6278312334c679e6fe7c3 /fs/afs/vl_rotate.c
parent4f4c2c05eb7703b485b4285b8e2eee908c7b4508 (diff)
downloadlinux-fb72cd3d484ce548597c75ebeecc70483fe8bb6e.tar.xz
afs: Expose information from afs_vlserver through /proc for debugging
Convert various bitfields in afs_vlserver::probe to a mask and then expose this and some other bits of information through /proc/net/afs/<cell>/vlservers to make it easier to debug VL server communication issues. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/vl_rotate.c')
-rw-r--r--fs/afs/vl_rotate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/afs/vl_rotate.c b/fs/afs/vl_rotate.c
index f405ca8b240a..ed2609e82695 100644
--- a/fs/afs/vl_rotate.c
+++ b/fs/afs/vl_rotate.c
@@ -192,7 +192,8 @@ pick_server:
for (i = 0; i < vc->server_list->nr_servers; i++) {
struct afs_vlserver *s = vc->server_list->servers[i].server;
- if (!test_bit(i, &vc->untried) || !s->probe.responded)
+ if (!test_bit(i, &vc->untried) ||
+ !(s->probe.flags & AFS_VLSERVER_PROBE_RESPONDED))
continue;
if (s->probe.rtt < rtt) {
vc->index = i;