]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: reduce calls to wake_up on uncontended locks
authorChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 19:25:05 +0000 (15:25 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 19:36:18 +0000 (15:36 -0400)
commit3217129cd51a41a650d07399a063d73b42eda5b7
tree3d6b62c1fd163107ecb08d6489cf0bc159e6df12
parent90fa03ea84a8a7f1eed50d0ee085a53e51118090
Btrfs: reduce calls to wake_up on uncontended locks

The btrfs locks were unconditionally calling wake_up as the
locks were released.  This lead to extra thrashing on the waitqueue,
especially for locks that were dominated by readers.

Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/locking.c