]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] autofs4: tree race fix
authorIan Kent <raven@themaw.net>
Sun, 1 May 2005 15:59:17 +0000 (08:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:59:17 +0000 (08:59 -0700)
commit3a9720ce73c9247e5262922d65e90444ea75eb50
treec70bba916168232f530c00858e7e8a0c5bd82b38
parent4dcd00b18118d174c4b8d838c11f437f0af3c20c
[PATCH] autofs4: tree race fix

For tree mount maps, a call to chdir or chroot, to a directory above the
moint point directories at a certain time during the expire results in the
expire incorrectly thinking the tree is not busy.  This patch adds a check
to see if the filesystem above the tree mount points is busy and also locks
the filesystem during the tree mount expire to prevent the race.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/autofs4/autofs_i.h
fs/autofs4/expire.c
fs/autofs4/inode.c