Commit 24a528fd authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

pre-dump: handle only seized tasks

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: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 96caa4da
...@@ -1432,7 +1432,7 @@ static int cr_pre_dump_finish(int ret) ...@@ -1432,7 +1432,7 @@ static int cr_pre_dump_finish(int ret)
struct parasite_ctl *ctl = dmpi(item)->parasite_ctl; struct parasite_ctl *ctl = dmpi(item)->parasite_ctl;
struct page_xfer xfer; struct page_xfer xfer;
if (!task_alive(item)) if (!ctl)
continue; continue;
pr_info("\tPre-dumping %d\n", ctl->pid.virt); pr_info("\tPre-dumping %d\n", ctl->pid.virt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment