]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] EXT2: Remove superblock lock contention in ext2_statfs
authorDave Kleikamp <shaggy@austin.ibm.com>
Tue, 19 Sep 2006 03:12:33 +0000 (20:12 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 19 Sep 2006 14:59:59 +0000 (07:59 -0700)
commit5cf27cc61d6c7880b77dff8a47958039cca4c3c5
tree3a8cbf486dce86116ada64d170896141ceee4692
parentf5a263f6fff65c7827889290966e09cec1e43a2e
[PATCH] EXT2: Remove superblock lock contention in ext2_statfs

Fix a performance degradation introduced in 2.6.17.  (30% degradation
running dbench with 16 threads)

Commit a4bf8175096c1fe63a902ad676b571a3e7f79a10, which claims to make
EXT2_DEBUG work again, moves the taking of the kernel lock out of
debug-only code in ext2_count_free_inodes and ext2_count_free_blocks and
into ext2_statfs.

The same problem was fixed in ext3 by removing the lock completely (commit
90a53d7e5b8889e36fe6d3388509e119ee09d429)

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext2/balloc.c
fs/ext2/ialloc.c
fs/ext2/super.c