diff options
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index d82cf18a1a94..2b4635e43ae8 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -830,6 +830,15 @@ static void expire_mount(struct vfsmount *mnt, struct list_head *mounts) | |||
830 | spin_lock(&vfsmount_lock); | 830 | spin_lock(&vfsmount_lock); |
831 | 831 | ||
832 | /* | 832 | /* |
833 | * Check if mount is still attached, if not, let whoever holds it deal | ||
834 | * with the sucker | ||
835 | */ | ||
836 | if (mnt->mnt_parent == mnt) { | ||
837 | spin_unlock(&vfsmount_lock); | ||
838 | return; | ||
839 | } | ||
840 | |||
841 | /* | ||
833 | * Check that it is still dead: the count should now be 2 - as | 842 | * Check that it is still dead: the count should now be 2 - as |
834 | * contributed by the vfsmount parent and the mntget above | 843 | * contributed by the vfsmount parent and the mntget above |
835 | */ | 844 | */ |