]> www.infradead.org Git - users/hch/misc.git/commitdiff
io_uring/zcrx: increment fallback loop src offset
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 8 Oct 2025 12:39:01 +0000 (13:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Oct 2025 13:26:14 +0000 (07:26 -0600)
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>
io_uring/zcrx.c

index ef73440b605a991743d19a146d2ec394bf51088e..a816f5902091cdcd3b77a5cd4c6f91562fba5cf6 100644 (file)
@@ -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;
        }