“d98e5cc2ddacb34e9cdf1c06dce2758198af0120”上不存在“...display/dc/git@gitcode.net:openanolis/cloud-kernel.git”
  • A
    fix deadlock in pivot_root() · 27cb1572
    Al Viro 提交于
    Don't hold vfsmount_lock over the loop traversing ->mnt_parent;
    do check_mnt(new.mnt) under namespace_sem instead; combined with
    namespace_sem held over all that code it'll guarantee the stability
    of ->mnt_parent chain all the way to the root.
    
    Doing check_mnt() outside of namespace_sem in case of pivot_root()
    is wrong anyway.
    Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
    27cb1572
namespace.c 65.2 KB