2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 05:18:00 +00:00

page-read: Only the top-most can be remote

All the "lower" page-read-s should have already arrived with
pre-dump. This fixes the combined scheme.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
This commit is contained in:
Pavel Emelyanov 2016-11-16 12:38:40 +03:00 committed by Andrei Vagin
parent 4d9d7ae7e5
commit edf5809f57

View File

@ -699,6 +699,11 @@ int open_page_read_at(int dfd, int pid, struct page_read *pr, int pr_flags)
static unsigned ids = 1;
bool remote = pr_flags & PR_REMOTE;
/*
* Only the top-most page-read can be remote, all the
* others are always local.
*/
pr_flags &= ~PR_REMOTE;
if (opts.auto_dedup)
pr_flags |= PR_MOD;
if (pr_flags & PR_MOD)