Commit 44a85ee0 authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Switch-and-wait creds restore stage with existing helper

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e5534e8e
......@@ -1352,10 +1352,8 @@ static int restore_root_task(struct pstree_item *init)
* Below this line nothing can fail, because network is unlocked
*/
__restore_switch_stage(CR_STATE_RESTORE_CREDS);
futex_wait_until(&task_entries->nr_in_progress, 0);
ret = restore_switch_stage(CR_STATE_RESTORE_CREDS);
BUG_ON(ret);
out:
if (ret < 0) {
struct pstree_item *pi;
......
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