]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
afs: Use the fs operation ops to handle FetchData completion
authorDavid Howells <dhowells@redhat.com>
Fri, 18 Sep 2020 08:11:15 +0000 (09:11 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Jan 2021 10:57:12 +0000 (10:57 +0000)
commit0bb652b54c3ab539e794f1b092db79b93ddee439
tree52a8936436c08c87fe840eb2dd1156c6585e85e9
parent6c725c73f4520b51189e7b65bc7bfbe68a1ccd4b
afs: Use the fs operation ops to handle FetchData completion

Use the 'success' and 'aborted' afs_operations_ops methods and add a
'failed' method to handle the completion of an AFS.FetchData,
AFS.FetchData64 or YFS.FetchData64 RPC operation rather than directly
calling the done func pointed to by the afs_read struct from the call
delivery handler.

This means the done function will be called back on error also, not just on
successful completion.

This allows motion towards asynchronous data reception on data fetch calls
and allows any error to be handed off to the fscache read helper in the
same place as a successful completion.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/file.c
fs/afs/fs_operation.c
fs/afs/fsclient.c
fs/afs/internal.h
fs/afs/yfsclient.c