Skip to content

Commit 2cf3632

Browse files
dhowellsbrauner
authored andcommitted
afs: Fix missing wire-up of afs_retry_request()
afs_retry_request() is supposed to be pointed to by the afs_req_ops netfs operations table, but the pointer got lost somewhere. The function is used during writeback to rotate through the authentication keys that were in force when the file was modified locally. Fix this by adding the pointer to the function. Fixes: 1ecb146 ("netfs, afs: Use writeback retry to deal with alternate keys") Reported-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/r/[email protected] cc: Marc Dionne <[email protected]> cc: Jeff Layton <[email protected]> cc: [email protected] cc: [email protected] cc: [email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent da6ef2d commit 2cf3632

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/afs/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ const struct netfs_request_ops afs_req_ops = {
420420
.begin_writeback = afs_begin_writeback,
421421
.prepare_write = afs_prepare_write,
422422
.issue_write = afs_issue_write,
423+
.retry_request = afs_retry_request,
423424
};
424425

425426
static void afs_add_open_mmap(struct afs_vnode *vnode)

0 commit comments

Comments
 (0)