summaryrefslogtreecommitdiffstats
path: root/fs/afs/fs_probe.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/fs_probe.c
parentd2ce4a84c21f803cd65097d1112b60226b2a3467 (diff)
downloadlinux-af9a5b4930dfafbf0274e9403cb64fcc698bb096.tar.gz
linux-af9a5b4930dfafbf0274e9403cb64fcc698bb096.tar.bz2
linux-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/fs_probe.c')
-rw-r--r--fs/afs/fs_probe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/afs/fs_probe.c b/fs/afs/fs_probe.c
index aef16ac3f577..8008d3ecabab 100644
--- a/fs/afs/fs_probe.c
+++ b/fs/afs/fs_probe.c
@@ -107,6 +107,8 @@ void afs_fileserver_probe_result(struct afs_call *call)
_enter("%pU,%u", &server->uuid, index);
+ WRITE_ONCE(addr->last_error, ret);
+
spin_lock(&server->probe_lock);
switch (ret) {