diff options
author | David Howells <dhowells@redhat.com> | 2023-10-27 12:45:56 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2024-01-01 19:36:58 +0300 |
commit | af9a5b4930dfafbf0274e9403cb64fcc698bb096 (patch) | |
tree | fde463a19716da115542ecb8e0ee40105af323b8 /fs/afs/vl_rotate.c | |
parent | d2ce4a84c21f803cd65097d1112b60226b2a3467 (diff) | |
download | linux-af9a5b4930dfafbf0274e9403cb64fcc698bb096.tar.xz |
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.c | 2 |
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: |