[CRIU] [PATCH] pre-dump: handle only seized tasks

Andrey Vagin avagin at openvz.org
Wed Jul 13 14:47:41 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

In a previous patch, we skipped zombies, but our pre-dump doesn't
support stopped tasks (Why does it not support them?), so let's
handle tasks which have parasite_ctl.

Cc: Mike Rapoport <rppt at linux.vnet.ibm.com>
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 criu/cr-dump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/cr-dump.c b/criu/cr-dump.c
index febef16..2c0aacb 100644
--- a/criu/cr-dump.c
+++ b/criu/cr-dump.c
@@ -1449,7 +1449,7 @@ static int cr_pre_dump_finish(int ret)
 		struct parasite_ctl *ctl = dmpi(item)->parasite_ctl;
 		struct page_xfer xfer;
 
-		if (!task_alive(item))
+		if (!ctl)
 			continue;
 
 		pr_info("\tPre-dumping %d\n", ctl->pid.virt);
-- 
2.7.4



More information about the CRIU mailing list