History

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.

Pavel Begunkov committed 1 year ago

Commit e9a9dcb1 parent 09cfd3c1 file · +1 −0Browse files

Unified · Split

io_uring/zcrx.c+1−0
@@ -1079,6 +1079,7 @@ static ssize_t io_copy_page(struct io_copy_cache *cc, struct page *src_page, · 1078 unmodified lines
10791079
10801080 cc->size -= n;
10811081 cc->offset += n;
1082+ src_offset += n;
10821083 len -= n;
10831084 copied += n;
10841085 }