mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
pre-dump: call vmsplice with SPLICE_F_GIFT
In this case, vmplice attaches pages without coping them. Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
b2bfb7745d
commit
efeedf3912
1 changed files with 1 additions and 1 deletions
|
|
@ -822,7 +822,7 @@ int page_xfer_predump_pages(int pid, struct page_xfer *xfer, struct page_pipe *p
|
|||
|
||||
bufvec.iov_base = userbuf;
|
||||
bufvec.iov_len = bytes_read;
|
||||
ret = vmsplice(ppb->p[1], &bufvec, 1, SPLICE_F_NONBLOCK);
|
||||
ret = vmsplice(ppb->p[1], &bufvec, 1, SPLICE_F_NONBLOCK | SPLICE_F_GIFT);
|
||||
|
||||
if (ret == -1 || ret != bytes_read) {
|
||||
pr_err("vmsplice: Failed to splice user buffer to pipe %ld\n", ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue