diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-12-23 01:30:08 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2015-04-03 03:34:18 +0200 |
commit | 590ce4bcbfb4e0462a720a4ad901e84416080bba (patch) | |
tree | e5597263904eda7b9e869e57851c6f5dd6737e47 /fs/pnode.c | |
parent | mnt: In umount_tree reuse mnt_list instead of mnt_hash (diff) | |
download | linux-590ce4bcbfb4e0462a720a4ad901e84416080bba.tar.xz linux-590ce4bcbfb4e0462a720a4ad901e84416080bba.zip |
mnt: Add MNT_UMOUNT flag
In some instances it is necessary to know if the the unmounting
process has begun on a mount. Add MNT_UMOUNT to make that reliably
testable.
This fix gets used in fixing locked mounts in MNT_DETACH
Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/pnode.c')
-rw-r--r-- | fs/pnode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/pnode.c b/fs/pnode.c index bf012af709dd..ac3aa0d43b90 100644 --- a/fs/pnode.c +++ b/fs/pnode.c @@ -384,6 +384,7 @@ static void __propagate_umount(struct mount *mnt) if (child && list_empty(&child->mnt_mounts)) { list_del_init(&child->mnt_child); hlist_del_init_rcu(&child->mnt_hash); + child->mnt.mnt_flags |= MNT_UMOUNT; list_move_tail(&child->mnt_list, &mnt->mnt_list); } } |