commit | 49958fd7dbb83cd4d65179d025940e01fe1fbacd | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Tue Feb 02 21:48:28 2010 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Mon Mar 15 11:00:12 2010 -0400 |
tree | 4a29e47c0935375968971450a2f2949bbd3cdd43 | |
parent | 4125bf761cd0786e1163e024c7c809ce2cc625bc [diff] |
Btrfs: change the ordered tree to use a spinlock instead of a mutex The ordered tree used to need a mutex, but currently all we use it for is to protect the rb_tree, and a spin_lock is just fine for that. Using a spin_lock instead makes dbench run a little faster, 58 mb/s instead of 51 mb/s, and have less latency, 3445.138 ms instead of 3820.633 ms. Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>