Commit e12dad0a authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

mntns: close_proc before clean up mounts

Because /proc could not be umounted, if any its file is opened.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a82cb23f
......@@ -688,6 +688,8 @@ int prepare_mnt_ns(int ns_pid)
pr_info("Restoring mount namespace\n");
close_proc();
/*
* The new mount namespace is filled with the mountpoint
* clones from the original one. We have to umount them
......
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