projects/linux·commit e9a9dcb4

io_uring/zcrx: increment fallback loop src offset

e9a9dcb4 · Pavel Begunkov <[email protected]> · 2025-10-08 13:39:01 +01:00

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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Commit
e9a9dcb4ccb32446165800a9d83058e95c4833d2
Parents
09cfd3c5

Changes

1 files changed · +1 −0

FileStatusAddDelContent
io_uring/zcrx.cmodified+1−0View file

io_uring/zcrx.c

View file
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index ef73440..a816f59 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;
}