diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-07-08 04:57:26 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-08 05:23:51 +0400 |
commit | ed42c879b7b1463aa7a15fdbbeb2b1914d60be8a (patch) | |
tree | 191f9386a8288e06d7d0e914434aea2f9a56e1ca /fs/super.c | |
parent | 24ca2af1e7cff55e71e9f86c61ddc56e894b8b40 (diff) | |
download | linux-ed42c879b7b1463aa7a15fdbbeb2b1914d60be8a.tar.xz |
[PATCH] namespace.c: fix expiring of detached mount
This patch fixes a bug noticed by Al Viro:
However, we still have a problem here - just what would
happen if vfsmount is detached while we were grabbing namespace
semaphore? Refcount alone is not useful here - we might be held by
whoever had detached the vfsmount. IOW, we should check that it's
still attached (i.e. that mnt->mnt_parent != mnt). If it's not -
just leave it alone, do mntput() and let whoever holds it deal with
the sucker. No need to put it back on lists.
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/super.c')
0 files changed, 0 insertions, 0 deletions