mirror of
https://git.proxmox.com/git/pve-kernel
synced 2025-04-28 18:10:22 +00:00
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Christian Ebner <c.ebner@proxmox.com>
|
|
Date: Wed, 2 Oct 2024 15:24:31 +0200
|
|
Subject: [PATCH] netfs: reset subreq iov iter before tail clean
|
|
|
|
Make sure the iter is at the correct location when cleaning up tail
|
|
bytes for incomplete read subrequests.
|
|
|
|
Fixes: 92b6cc5d ("netfs: Add iov_iters to (sub)requests to describe various buffers")
|
|
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219237
|
|
|
|
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
|
|
---
|
|
fs/netfs/io.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/fs/netfs/io.c b/fs/netfs/io.c
|
|
index aaff3844e9b708e20b885cfdcc378f91d3335d4c..e8a884040e2b377b48d6da9f1b5096f8fcd99f92 100644
|
|
--- a/fs/netfs/io.c
|
|
+++ b/fs/netfs/io.c
|
|
@@ -517,6 +517,7 @@ void netfs_subreq_terminated(struct netfs_io_subrequest *subreq,
|
|
|
|
incomplete:
|
|
if (test_bit(NETFS_SREQ_CLEAR_TAIL, &subreq->flags)) {
|
|
+ netfs_reset_subreq_iter(rreq, subreq);
|
|
netfs_clear_unread(subreq);
|
|
subreq->transferred = subreq->len;
|
|
goto complete;
|