[CRIU] [PATCH 03/12] page-read: Warn about async read w/o completion cb

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


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

diff --git a/criu/pagemap.c b/criu/pagemap.c
index 441b42d..3b4c144 100644
--- a/criu/pagemap.c
+++ b/criu/pagemap.c
@@ -457,6 +457,8 @@ static int read_page_complete(int pid, unsigned long vaddr, int nr_pages, void *
 
 	if (pr->io_complete)
 		ret = pr->io_complete(pr, vaddr, nr_pages);
+	else
+		pr_warn_once("Remote page read w/o io_complete!\n");
 
 	return ret;
 }
-- 
2.1.4



More information about the CRIU mailing list