summaryrefslogtreecommitdiffstats
path: root/fs/afs/file.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2024-03-15 15:15:44 +0000
committerDavid Howells <dhowells@redhat.com>2024-05-01 18:07:38 +0100
commit1ecb146f7cd82e44277de448d4f736b98741f3cb (patch)
tree572036680cd3b0491525b74b48121bb3b2a8e55c /fs/afs/file.c
parentd41ca44c20c3578154f30b07aa85ed4a951f34ab (diff)
downloadlinux-1ecb146f7cd82e44277de448d4f736b98741f3cb.tar.gz
linux-1ecb146f7cd82e44277de448d4f736b98741f3cb.tar.bz2
linux-1ecb146f7cd82e44277de448d4f736b98741f3cb.zip
netfs, afs: Use writeback retry to deal with alternate keys
Use a hook in the new writeback code's retry algorithm to rotate the keys once all the outstanding subreqs have failed rather than doing it separately on each subreq. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org
Diffstat (limited to 'fs/afs/file.c')
-rw-r--r--fs/afs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/file.c b/fs/afs/file.c
index 8f983e3ecae7..c3f0c45ae9a9 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -368,6 +368,7 @@ static int afs_check_write_begin(struct file *file, loff_t pos, unsigned len,
static void afs_free_request(struct netfs_io_request *rreq)
{
key_put(rreq->netfs_priv);
+ afs_put_wb_key(rreq->netfs_priv2);
}
static void afs_update_i_size(struct inode *inode, loff_t new_i_size)