]> git.hungrycats.org Git - linux/commit
[PATCH] autofs4: locking rework
authorAndrew Morton <akpm@osdl.org>
Sat, 15 May 2004 03:14:00 +0000 (20:14 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 15 May 2004 03:14:00 +0000 (20:14 -0700)
commit79c2bc374be40f00be49acf188b0847f7b1fa023
treecb701bb192c9ec3864dfe5bfacff32c7e4e3561a
parent3c51ca5fd1cc62e642daaac669947d2348f26b23
[PATCH] autofs4: locking rework

From: Ian Kent <raven@themaw.net>

Remove BKL from autofs4 module and add spinlock to serialise access to the
automount daemon communication waitq.

Locking requirements are different in 2.6 and so I'm seeking comments and
suggestions on this.  I have taken a rather heavy handed approach to this in
the patch.  For example, the VFS operations that directly change the
filesystem, such as autofs4_mkdir etc, hold the inode semaphore on entry so
the BKL has been removed.  I can't see why two locking mechanisms are needed.
 Rather than add locking all over the place, I'm looking for justification
it's needed, as I don't see it myself.
fs/autofs4/autofs_i.h
fs/autofs4/root.c
fs/autofs4/waitq.c