fs-dcache-scale-d_subdirs
authorNick Piggin <npiggin@suse.de>
Fri, 29 Jan 2010 23:38:22 +0000 (15:38 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 27 Apr 2010 15:32:33 +0000 (17:32 +0200)
commitb9ab2f38fdee96ff49b8a7bbb65cbfc60921e40c
treee5e785ba4ae7ec89564914c50638a22d756b6d19
parentd4fe09131b66c5a7176a5dbfc9bd1ef6939643e8
fs-dcache-scale-d_subdirs

Protect d_subdirs and d_child with d_lock, except in filesystems that aren't
using dcache_lock for these anyway (eg. using i_mutex).

XXX: probably don't need parent lock in inotify (because child lock
should stabilize parent). Also, possibly some filesystems don't need so
much locking (eg. of child dentry when modifying d_child, so long as
parent is locked)... but be on the safe side. Hmm, maybe we should just
say d_child list is protected by d_parent->d_lock. d_parent could remain
protected with d_lock.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
15 files changed:
drivers/usb/core/inode.c
fs/autofs4/expire.c
fs/autofs4/inode.c
fs/autofs4/root.c
fs/coda/cache.c
fs/dcache.c
fs/libfs.c
fs/ncpfs/dir.c
fs/ncpfs/ncplib_kernel.h
fs/notify/fsnotify.c
fs/notify/inotify/inotify.c
fs/smbfs/cache.c
include/linux/dcache.h
kernel/cgroup.c
security/selinux/selinuxfs.c