Commit c0b7e484 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

dump: lazy-migration: don't try to cleanup zombie processes

The lazy memory dump used by the post copy migration cleans up page pipes
and parasite from zombie tasks, although for such task they are never
initialized.
Fix it.
Signed-off-by: 's avatarMike Rapoport <rppt@linux.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent c2a74d66
......@@ -1635,8 +1635,10 @@ static int cr_lazy_mem_dump(void)
ret = cr_page_server(false, true, -1);
for_each_pstree_item(item) {
destroy_page_pipe(dmpi(item)->mem_pp);
compel_cure_local(dmpi(item)->parasite_ctl);
if (item->pid->state != TASK_DEAD) {
destroy_page_pipe(dmpi(item)->mem_pp);
compel_cure_local(dmpi(item)->parasite_ctl);
}
}
if (ret)
......
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