fs-mntget-scale
authorNick Piggin <npiggin@suse.de>
Fri, 29 Jan 2010 23:38:19 +0000 (15:38 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 27 Apr 2010 15:32:28 +0000 (17:32 +0200)
commitcab5e5bb352fe4426bb255fbc09d866426cc6dd8
tree243702d5f6cc9d65c832e2f3916e78761dfd2ff2
parentf0a176c5482950a40ac31113816b981d4fe6069c
fs-mntget-scale

Improve scalability of mntget/mntput by using per-cpu counters protected
by the reader side of the brlock vfsmount_lock. mnt_mounted keeps track of
whether the vfsmount is actually attached to the tree so we can shortcut
expensive checks in mntput.

XXX: count_mnt_count needs write lock. Document this and/or revisit locking
(eg. look at writers count)

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>
fs/libfs.c
fs/namespace.c
fs/pnode.c
include/linux/mount.h