]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix error handling in VL server rotation
authorDavid Howells <dhowells@redhat.com>
Thu, 20 Aug 2020 15:13:05 +0000 (16:13 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 20 Aug 2020 17:21:28 +0000 (18:21 +0100)
commit69050867bfc065054688325f11c571ba3de5731e
treed33ffa021696190c0a20c762ea065bc7dad72120
parentfd8569e9c050c90940ebbc1c5b66f2102f5e5585
afs: Fix error handling in VL server rotation

The error handling in the VL server rotation in the case of there being no
contactable servers is not correct.  In such a case, the records of all the
servers in the list are scanned and the errors and abort codes are mapped
and prioritised and one error is chosen.  This is then forgotten and the
default error is used (EDESTADDRREQ).

Fix this by using the calculated error.

Also we need to note whether a server responded on one of its endpoints so
that we can priorise an error from an abort message over local and network
errors.

Fixes: 6fa340552714 ("afs: Fix missing net error handling")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/vl_rotate.c