Skip to content

Commit e9a9dcb

Browse files
isilenceaxboe
authored andcommitted
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: e67645b ("io_uring/zcrx: prepare fallback for larger pages") Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 09cfd3c commit e9a9dcb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

io_uring/zcrx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,7 @@ static ssize_t io_copy_page(struct io_copy_cache *cc, struct page *src_page,
10791079

10801080
cc->size -= n;
10811081
cc->offset += n;
1082+
src_offset += n;
10821083
len -= n;
10831084
copied += n;
10841085
}

0 commit comments

Comments
 (0)