[CRIU] [PATCH 1/7] page-read: Only the top-most can be remote

Pavel Emelyanov xemul at virtuozzo.com
Wed Nov 16 01:38:40 PST 2016


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

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 criu/pagemap.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/criu/pagemap.c b/criu/pagemap.c
index 61ab814..f19c0ed 100644
--- a/criu/pagemap.c
+++ b/criu/pagemap.c
@@ -625,6 +625,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)
-- 
2.5.0



More information about the CRIU mailing list