]> git.neil.brown.name Git - history.git/commit
[PATCH] reduce lock contention in try_to_free_buffers()
authorAndrew Morton <akpm@zip.com.au>
Thu, 4 Jul 2002 15:32:06 +0000 (08:32 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 4 Jul 2002 15:32:06 +0000 (08:32 -0700)
commit5feb041e29d4f3a4b94c68ab9ada8f21caebbf48
tree0ecc14ec500aa270a78c8dec5aa04d615bcdd4ef
parent63a071539a3d8842eff1145503adfbfe7f1098d3
[PATCH] reduce lock contention in try_to_free_buffers()

The blockdev mapping's private_lock is fairly contended.  The buffer
LRU cache fixed a lot of that, but under page replacement load,
try_to_free_buffers is still showing up.

Moving the freeing of buffer_heads outside the lock reduces contention
in there by 30%.
fs/buffer.c