Home
last modified time | relevance | path

Searched hist:ed42c879 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/
H A Dnamespace.ced42c879 Thu Jul 07 19:57:26 CDT 2005 Miklos Szeredi <miklos@szeredi.hu> [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>
ed42c879 Thu Jul 07 19:57:26 CDT 2005 Miklos Szeredi <miklos@szeredi.hu> [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>