afs: Simplify error handling
authorDavid Howells <dhowells@redhat.com>
Wed, 25 Oct 2023 16:53:33 +0000 (17:53 +0100)
committerDavid Howells <dhowells@redhat.com>
Sun, 24 Dec 2023 15:22:53 +0000 (15:22 +0000)
commitaa453becce5d1ae1b94b7fc22f47d7b05d22b14e
tree933b826c996b2688608d7108d04ff03d390b9585
parent6f2ff7e89bd05677f4c08fccafcf625ca3e09c1c
afs: Simplify error handling

Simplify error handling a bit by moving it from the afs_addr_cursor struct
to the afs_operation and afs_vl_cursor structs and using the error
prioritisation function for accumulating errors from multiple sources (AFS
tries to rotate between multiple fileservers, some of which may be
inaccessible or in some state of offlinedness).

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
15 files changed:
fs/afs/addr_list.c
fs/afs/dir.c
fs/afs/dir_silly.c
fs/afs/file.c
fs/afs/fs_operation.c
fs/afs/fsclient.c
fs/afs/internal.h
fs/afs/misc.c
fs/afs/rotate.c
fs/afs/rxrpc.c
fs/afs/server.c
fs/afs/vl_alias.c
fs/afs/vl_probe.c
fs/afs/vl_rotate.c
fs/afs/vlclient.c