Linux network filesystem support library
 help / color / mirror / Atom feed
* [PATCH] afs: Fix missing wire-up of afs_retry_request()
@ 2024-09-14 20:40 David Howells
  2024-09-17  9:06 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2024-09-14 20:40 UTC (permalink / raw)
  To: Marc Dionne
  Cc: dhowells, Dr. David Alan Gilbert, brauner, Jeff Layton, linux-afs,
	netfs, linux-fsdevel, linux-kernel

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: 1ecb146f7cd8 ("netfs, afs: Use writeback retry to deal with alternate keys")
Reported-by: "Dr. David Alan Gilbert" <linux@treblig.org>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-afs@lists.infradead.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
---
 fs/afs/file.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/afs/file.c b/fs/afs/file.c
index ec1be0091fdb..290f60460ec7 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -404,6 +404,7 @@ const struct netfs_request_ops afs_req_ops = {
 	.begin_writeback	= afs_begin_writeback,
 	.prepare_write		= afs_prepare_write,
 	.issue_write		= afs_issue_write,
+	.retry_request		= afs_retry_request,
 };
 
 static void afs_add_open_mmap(struct afs_vnode *vnode)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] afs: Fix missing wire-up of afs_retry_request()
  2024-09-14 20:40 [PATCH] afs: Fix missing wire-up of afs_retry_request() David Howells
@ 2024-09-17  9:06 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2024-09-17  9:06 UTC (permalink / raw)
  To: Marc Dionne, David Howells
  Cc: Christian Brauner, Dr. David Alan Gilbert, Jeff Layton, linux-afs,
	netfs, linux-fsdevel, linux-kernel

On Sat, 14 Sep 2024 21:40:02 +0100, David Howells wrote:
> 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.
> 
> [...]

Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes

[1/1] afs: Fix missing wire-up of afs_retry_request()
      https://git.kernel.org/vfs/vfs/c/3fe535cb1a3b

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-17  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-14 20:40 [PATCH] afs: Fix missing wire-up of afs_retry_request() David Howells
2024-09-17  9:06 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox