afs: Fix offline and busy message emission
authorDavid Howells <dhowells@redhat.com>
Thu, 9 Nov 2023 12:06:49 +0000 (12:06 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 1 Jan 2024 16:37:27 +0000 (16:37 +0000)
commit28f4c58045ede40c44d331b9a6c9a6a41eb8e9a9
tree552fb196879012d0f376efbfa86280906059857f
parent495f2ae9e3552c30f7b83be3d142a932885d506e
afs: Fix offline and busy message emission

The current code assumes that offline and busy volume states apply to all
instances of a volume, not just the one on the server that returned
VOFFLINE or VBUSY and will emit a notice to dmesg suggesting that the
entire volume is unavailable.

Fix that by moving the flags recording this to the afs_server_entry struct
that is used to represent a particular instance of a volume on a specific
server.  The notice is altered to include the server UUID also.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
fs/afs/internal.h
fs/afs/rotate.c