|
@@ -1253,6 +1253,9 @@ void umount_tree(struct mount *mnt, int how)
|
|
|
hlist_add_head(&p->mnt_hash, &tmp_list);
|
|
|
}
|
|
|
|
|
|
+ hlist_for_each_entry(p, &tmp_list, mnt_hash)
|
|
|
+ list_del_init(&p->mnt_child);
|
|
|
+
|
|
|
if (how)
|
|
|
propagate_umount(&tmp_list);
|
|
|
|
|
@@ -1263,7 +1266,6 @@ void umount_tree(struct mount *mnt, int how)
|
|
|
p->mnt_ns = NULL;
|
|
|
if (how < 2)
|
|
|
p->mnt.mnt_flags |= MNT_SYNC_UMOUNT;
|
|
|
- list_del_init(&p->mnt_child);
|
|
|
if (mnt_has_parent(p)) {
|
|
|
put_mountpoint(p->mnt_mp);
|
|
|
/* move the reference to mountpoint into ->mnt_ex_mountpoint */
|