From 002c81c3cee97aa09ee0913e536449e4a68e4ca8 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 7 Oct 2015 16:27:00 +0300 Subject: [PATCH] mnt: Don't treat ns roots as special when restoring Namespace roots might be slave ones from another namespace roots, so we should not treat them as "always ready" for mounting but rely on general logic in can_mount_now which tests slaves relations. Signed-off-by: Cyrill Gorcunov Acked-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- mount.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mount.c b/mount.c index 00ce23147..f5fe1517d 100644 --- a/mount.c +++ b/mount.c @@ -2121,8 +2121,6 @@ static bool can_mount_now(struct mount_info *mi) /* The root mount */ if (!mi->parent) return true; - if (mi->is_ns_root) - return true; if (mi->external) return true;