Btrfs: Check for a blocking lock before taking the spin
authorChris Mason <chris.mason@oracle.com>
Fri, 13 Mar 2009 00:12:45 +0000 (20:12 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 24 Mar 2009 20:14:27 +0000 (16:14 -0400)
commit66d7e85ea7c3628189d19b265495358f756cb463
treeffd9484c6e80f90bcf0c4da2f41dda57c8d6eac5
parent7f366cfecfc126731f8ac505d72026d691dac79a
Btrfs: Check for a blocking lock before taking the spin

This reduces contention on the extent buffer spin locks by testing for a
blocking lock before trying to take the spinlock.

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