pre-dump: handle only seized tasks

Submitted by Andrei Vagin on July 13, 2016, 9:47 p.m.

Details

Message ID 1468446461-20446-1-git-send-email-avagin@openvz.org
State Accepted
Series "pre-dump: handle only seized tasks"
Commit f56568e6ae30991fd1f7447002f546889c7967f1
Headers show

Commit Message

Andrei Vagin July 13, 2016, 9:47 p.m.
From: Andrew Vagin <avagin@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@linux.vnet.ibm.com>
Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
---
 criu/cr-dump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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

Comments

Pavel Emelianov July 14, 2016, 11:10 a.m.
Applied, thanks