[CRIU] [PATCH] restore: restore mntns before creating private vma-s (v3)

Pavel Emelyanov xemul at parallels.com
Fri Nov 13 22:54:33 PST 2015


Applied with

> @@ -2642,6 +2619,9 @@ int restore_task_mnt_ns(struct pstree_item *current)
>  		if (root_item->ids->mnt_ns_id == id)
>  			return 0;

This check removed and

>  
> +		if (!current->parent && id == current->parent->ids->mnt_ns_id)

This && replaced with ||

> +			return 0;
> +
>  		nsid = lookup_ns_by_id(id, &mnt_ns_desc);
>  		if (nsid == NULL) {
>  			pr_err("Can't find mount namespace %d\n", id);
> @@ -2762,9 +2742,10 @@ void cleanup_mnt_ns(void)



More information about the CRIU mailing list