Commit 95ea4e92 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

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: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 7ffaf883
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment