]> git.hungrycats.org Git - linux/commit
[PATCH] autofs4 race fix
authorAndrew Morton <akpm@osdl.org>
Sat, 15 May 2004 03:15:15 +0000 (20:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 15 May 2004 03:15:15 +0000 (20:15 -0700)
commite246a5f2b9765059b88a86e968f219c6283cb4a9
treed29365e96eff251378fc3d1c14f0daefc017510e
parent9ca0507d7f249ae16cc29cfe4f7c1e8f7bbd73dd
[PATCH] autofs4 race fix

From: Ian Kent <raven@themaw.net>

The case where two process similtaneously trigger a mount in autofs4 can
cause multiple requests to the daemon for the same mount.  The daemon
handles this OK but it's possible an incorrect error to be returned.  For
this reason I believe it is better to change the spin lock to a semaphore
in waitq.c.  This makes the second and subsequent request wait on the q as
ther supposed to.
fs/autofs4/autofs_i.h
fs/autofs4/inode.c
fs/autofs4/waitq.c