lazy-pages: fork: fix duplication of IOV lists

Instead of merging unfinished requests with child's IOVs we queued them
into parent's IOV list. Fix it.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Mike Rapoport 2018-05-07 21:50:02 +03:00 committed by Andrei Vagin
parent 7ffaf883bd
commit 95ea4e92a8

View file

@ -475,7 +475,7 @@ static int copy_iovs(struct lazy_pages_info *src, struct lazy_pages_info *dst)
* The IOVs aready in flight for the parent process need to be
* transferred again for the child process
*/
merge_iov_lists(&dst->reqs, &src->iovs);
merge_iov_lists(&dst->reqs, &dst->iovs);
dst->buf_size = src->buf_size;
if (posix_memalign(&dst->buf, PAGE_SIZE, dst->buf_size))