From aae3cd6356b57bd4bb7df40f628e2ad598c99ae4 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 6 Jul 2017 12:38:30 +0300 Subject: [PATCH] page-read: Don't check for cache/proxy in local case The opts.remote is always false in this code. Acked-by: Mike Rapoport Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- criu/pagemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/pagemap.c b/criu/pagemap.c index 91630f0ab..fec125d08 100644 --- a/criu/pagemap.c +++ b/criu/pagemap.c @@ -388,7 +388,7 @@ static int maybe_read_page_local(struct page_read *pr, unsigned long vaddr, * for us for urgent async read, just do the regular * cached read. */ - if ((flags & (PR_ASYNC|PR_ASAP)) == PR_ASYNC && !opts.remote) + if ((flags & (PR_ASYNC|PR_ASAP)) == PR_ASYNC) ret = pagemap_enqueue_iovec(pr, buf, len, &pr->async); else { ret = read_local_page(pr, vaddr, len, buf);