From f24fa053135f70fcd524a6afa8375bdbc68d2b7c Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 7 Jul 2005 17:57:26 -0700 Subject: [PATCH] --- yaml --- r: 4294 b: refs/heads/master c: ed42c879b7b1463aa7a15fdbbeb2b1914d60be8a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/namespace.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index cf4ab6c403ef..af664ee99321 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 24ca2af1e7cff55e71e9f86c61ddc56e894b8b40 +refs/heads/master: ed42c879b7b1463aa7a15fdbbeb2b1914d60be8a diff --git a/trunk/fs/namespace.c b/trunk/fs/namespace.c index d82cf18a1a94..2b4635e43ae8 100644 --- a/trunk/fs/namespace.c +++ b/trunk/fs/namespace.c @@ -829,6 +829,15 @@ static void expire_mount(struct vfsmount *mnt, struct list_head *mounts) { spin_lock(&vfsmount_lock); + /* + * Check if mount is still attached, if not, let whoever holds it deal + * with the sucker + */ + if (mnt->mnt_parent == mnt) { + spin_unlock(&vfsmount_lock); + return; + } + /* * Check that it is still dead: the count should now be 2 - as * contributed by the vfsmount parent and the mntget above