]> 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)
commitf2c96db8d2bcb2ba2d7a0a6c0e6b5f77ea615448
tree3d6b62c1fd163107ecb08d6489cf0bc159e6df12
parentcf908dcbfbe80c97a7b4d28c58a93f2be83865fb
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