Skip to content

Commit

Permalink
afs: Handle the VIO and UAEIO aborts explicitly
Browse files Browse the repository at this point in the history
When processing the result of a call, handle the VIO and UAEIO abort
specifically rather than leaving it to a default case.  Rather than
erroring out unconditionally, see if there's another server if the volume
has more than one server available, otherwise return -EREMOTEIO.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
  • Loading branch information
David Howells committed Dec 24, 2023
1 parent aa4917d commit eb8eae6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fs/afs/rotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,13 @@ bool afs_select_fileserver(struct afs_operation *op)

goto restart_from_beginning;

case UAEIO:
case VIO:
op->error = -EREMOTEIO;
if (op->volume->type != AFSVL_RWVOL)
goto next_server;
goto failed;

case VDISKFULL:
case UAENOSPC:
/* The partition is full. Only applies to RWVOLs.
Expand Down

0 comments on commit eb8eae6

Please sign in to comment.