[CRIU] [PATCH 02/12] page-read: Don't check for cache/proxy in local case

Pavel Emelyanov xemul at virtuozzo.com
Wed Jun 28 16:46:20 MSK 2017


The opts.remote is always false in this code.

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

diff --git a/criu/pagemap.c b/criu/pagemap.c
index 4a0f142..441b42d 100644
--- a/criu/pagemap.c
+++ b/criu/pagemap.c
@@ -400,7 +400,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);
-- 
2.1.4



More information about the CRIU mailing list