]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/namei.c
[PATCH] namei fixes (5/19)
authorAl Viro <viro@www.linux.org.uk>
Mon, 6 Jun 2005 20:36:01 +0000 (13:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 6 Jun 2005 21:42:24 +0000 (14:42 -0700)
commit1be4a0900be5d2c2fd9cd012e3a153e1ea47b96a
treee743475f1ff0e078bda6bc8555bfc5b9fb8b4097
parentd73ffe16b8baafae6e9249acee6b50c24099c6de
[PATCH] namei fixes (5/19)

fix for too early mntput() in open_namei() - we pin path.mnt down for the
duration of __do_follow_link().  Otherwise we could get the fs where our
symlink lived unmounted while we were in __do_follow_link().  That would end
up with dentry of symlink staying pinned down through the fs shutdown.

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namei.c