summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2025-10-08 13:39:01 +0100
committerJens Axboe <axboe@kernel.dk>2025-10-08 07:26:14 -0600
commite9a9dcb4ccb32446165800a9d83058e95c4833d2 (patch)
tree4a7baee9295601d0fedac470c2866f632831be66
parent09cfd3c52ea76f43b3cb15e570aeddf633d65e80 (diff)
io_uring/zcrx: increment fallback loop src offset
Don't forget to adjust the source offset in io_copy_page(), otherwise it'll be copying into the same location in some cases for highmem setups. Fixes: e67645bb7f3f4 ("io_uring/zcrx: prepare fallback for larger pages") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--io_uring/zcrx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index ef73440b605a..a816f5902091 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -1079,6 +1079,7 @@ static ssize_t io_copy_page(struct io_copy_cache *cc, struct page *src_page,
cc->size -= n;
cc->offset += n;
+ src_offset += n;
len -= n;
copied += n;
}