From 6b44cd8ea93e2fafafddf1aec4fb70690bb84d05 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Fri, 28 Apr 2017 15:27:24 +0300 Subject: [PATCH] restore: Remove bogus futex kick The restore_switch_stage() already waits tasks at the end, so there's no need in one more waiting. Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- criu/cr-restore.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/criu/cr-restore.c b/criu/cr-restore.c index 5f262b5a2..09356fe29 100644 --- a/criu/cr-restore.c +++ b/criu/cr-restore.c @@ -1942,11 +1942,6 @@ static int restore_root_task(struct pstree_item *init) goto out_kill; ret = restore_switch_stage(CR_STATE_POST_RESTORE_NS); - if (ret < 0) - goto out_kill; - - pr_info("Wait until namespaces are created\n"); - ret = restore_wait_inprogress_tasks(); if (ret) goto out_kill;