[03/13] page-read: Warn about async read w/o completion cb

Submitted by Pavel Emelianov on July 6, 2017, 9:38 a.m.

Details

Message ID 0d12742d-80b5-47af-deea-08ba3592284c@virtuozzo.com
State Accepted
Series "A set of cleanups for pagemaps/xfers/reads before master merge (resend)"
Headers show

Commit Message

Pavel Emelianov July 6, 2017, 9:38 a.m.
Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/pagemap.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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;
 }