summaryrefslogtreecommitdiffstats
path: root/fs/afs/vl_rotate.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2023-10-27 10:45:56 +0100
committerDavid Howells <dhowells@redhat.com>2024-01-01 16:36:58 +0000
commitaf9a5b4930dfafbf0274e9403cb64fcc698bb096 (patch)
treefde463a19716da115542ecb8e0ee40105af323b8 /fs/afs/vl_rotate.c
parentd2ce4a84c21f803cd65097d1112b60226b2a3467 (diff)
downloadlinux-stable-af9a5b4930dfafbf0274e9403cb64fcc698bb096.tar.gz
linux-stable-af9a5b4930dfafbf0274e9403cb64fcc698bb096.tar.bz2
linux-stable-af9a5b4930dfafbf0274e9403cb64fcc698bb096.zip
afs: Add some more info to /proc/net/afs/servers
In /proc/net/afs/servers, show the cell name and the last error for each address in the server's list. Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org
Diffstat (limited to 'fs/afs/vl_rotate.c')
-rw-r--r--fs/afs/vl_rotate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/afs/vl_rotate.c b/fs/afs/vl_rotate.c
index 91168528179c..d8f79f6ada3d 100644
--- a/fs/afs/vl_rotate.c
+++ b/fs/afs/vl_rotate.c
@@ -114,6 +114,8 @@ bool afs_select_vlserver(struct afs_vl_cursor *vc)
if (vc->nr_iterations == 0)
goto start;
+ WRITE_ONCE(alist->addrs[vc->addr_index].last_error, error);
+
/* Evaluate the result of the previous operation, if there was one. */
switch (error) {
default: