Home
last modified time | relevance | path

Searched hist:e7f680f4 (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/afs/
H A Daddr_list.ce7f680f4 Fri Oct 19 18:57:57 CDT 2018 David Howells <dhowells@redhat.com> afs: Improve FS server rotation error handling

Improve the error handling in FS server rotation by:

(1) Cache the latest useful error value for the fs operation as a whole in
struct afs_fs_cursor separately from the error cached in the
afs_addr_cursor struct. The one in the address cursor gets clobbered
occasionally. Copy over the error to the fs operation only when it's
something we'd be interested in passing to userspace.

(2) Make it so that EDESTADDRREQ is the default that is seen only if no
addresses are available to be accessed.

(3) When calling utility functions, such as checking a volume status or
probing a fileserver, don't let a successful result clobber the cached
error in the cursor; instead, stash the result in a temporary variable
until it has been assessed.

(4) Don't return ETIMEDOUT or ETIME if a better error, such as
ENETUNREACH, is already cached.

(5) On leaving the rotation loop, turn any remote abort code into a more
useful error than ECONNABORTED.

Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
e7f680f4 Fri Oct 19 18:57:57 CDT 2018 David Howells <dhowells@redhat.com> afs: Improve FS server rotation error handling

Improve the error handling in FS server rotation by:

(1) Cache the latest useful error value for the fs operation as a whole in
struct afs_fs_cursor separately from the error cached in the
afs_addr_cursor struct. The one in the address cursor gets clobbered
occasionally. Copy over the error to the fs operation only when it's
something we'd be interested in passing to userspace.

(2) Make it so that EDESTADDRREQ is the default that is seen only if no
addresses are available to be accessed.

(3) When calling utility functions, such as checking a volume status or
probing a fileserver, don't let a successful result clobber the cached
error in the cursor; instead, stash the result in a temporary variable
until it has been assessed.

(4) Don't return ETIMEDOUT or ETIME if a better error, such as
ENETUNREACH, is already cached.

(5) On leaving the rotation loop, turn any remote abort code into a more
useful error than ECONNABORTED.

Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
H A Drotate.ce7f680f4 Fri Oct 19 18:57:57 CDT 2018 David Howells <dhowells@redhat.com> afs: Improve FS server rotation error handling

Improve the error handling in FS server rotation by:

(1) Cache the latest useful error value for the fs operation as a whole in
struct afs_fs_cursor separately from the error cached in the
afs_addr_cursor struct. The one in the address cursor gets clobbered
occasionally. Copy over the error to the fs operation only when it's
something we'd be interested in passing to userspace.

(2) Make it so that EDESTADDRREQ is the default that is seen only if no
addresses are available to be accessed.

(3) When calling utility functions, such as checking a volume status or
probing a fileserver, don't let a successful result clobber the cached
error in the cursor; instead, stash the result in a temporary variable
until it has been assessed.

(4) Don't return ETIMEDOUT or ETIME if a better error, such as
ENETUNREACH, is already cached.

(5) On leaving the rotation loop, turn any remote abort code into a more
useful error than ECONNABORTED.

Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
e7f680f4 Fri Oct 19 18:57:57 CDT 2018 David Howells <dhowells@redhat.com> afs: Improve FS server rotation error handling

Improve the error handling in FS server rotation by:

(1) Cache the latest useful error value for the fs operation as a whole in
struct afs_fs_cursor separately from the error cached in the
afs_addr_cursor struct. The one in the address cursor gets clobbered
occasionally. Copy over the error to the fs operation only when it's
something we'd be interested in passing to userspace.

(2) Make it so that EDESTADDRREQ is the default that is seen only if no
addresses are available to be accessed.

(3) When calling utility functions, such as checking a volume status or
probing a fileserver, don't let a successful result clobber the cached
error in the cursor; instead, stash the result in a temporary variable
until it has been assessed.

(4) Don't return ETIMEDOUT or ETIME if a better error, such as
ENETUNREACH, is already cached.

(5) On leaving the rotation loop, turn any remote abort code into a more
useful error than ECONNABORTED.

Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
H A Dinternal.he7f680f4 Fri Oct 19 18:57:57 CDT 2018 David Howells <dhowells@redhat.com> afs: Improve FS server rotation error handling

Improve the error handling in FS server rotation by:

(1) Cache the latest useful error value for the fs operation as a whole in
struct afs_fs_cursor separately from the error cached in the
afs_addr_cursor struct. The one in the address cursor gets clobbered
occasionally. Copy over the error to the fs operation only when it's
something we'd be interested in passing to userspace.

(2) Make it so that EDESTADDRREQ is the default that is seen only if no
addresses are available to be accessed.

(3) When calling utility functions, such as checking a volume status or
probing a fileserver, don't let a successful result clobber the cached
error in the cursor; instead, stash the result in a temporary variable
until it has been assessed.

(4) Don't return ETIMEDOUT or ETIME if a better error, such as
ENETUNREACH, is already cached.

(5) On leaving the rotation loop, turn any remote abort code into a more
useful error than ECONNABORTED.

Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
e7f680f4 Fri Oct 19 18:57:57 CDT 2018 David Howells <dhowells@redhat.com> afs: Improve FS server rotation error handling

Improve the error handling in FS server rotation by:

(1) Cache the latest useful error value for the fs operation as a whole in
struct afs_fs_cursor separately from the error cached in the
afs_addr_cursor struct. The one in the address cursor gets clobbered
occasionally. Copy over the error to the fs operation only when it's
something we'd be interested in passing to userspace.

(2) Make it so that EDESTADDRREQ is the default that is seen only if no
addresses are available to be accessed.

(3) When calling utility functions, such as checking a volume status or
probing a fileserver, don't let a successful result clobber the cached
error in the cursor; instead, stash the result in a temporary variable
until it has been assessed.

(4) Don't return ETIMEDOUT or ETIME if a better error, such as
ENETUNREACH, is already cached.

(5) On leaving the rotation loop, turn any remote abort code into a more
useful error than ECONNABORTED.

Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: David Howells <dhowells@redhat.com>