Chris Mason f9efa9c784 Btrfs: Reduce contention on the root node
This calls unlock_up sooner in btrfs_search_slot in order to decrease the
amount of work done with the higher level tree locks held.

Also, it changes btrfs_tree_lock to spin for a big against the page lock
before scheduling.  This makes a big difference in context switch rate under
highly contended workloads.

Longer term, a better locking structure is needed than the page lock.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
2008-09-25 11:04:04 -04:00
..
2007-07-11 10:00:37 -04:00
2007-06-12 09:07:21 -04:00
2007-06-12 09:07:21 -04:00
2008-09-25 11:04:00 -04:00
2008-09-25 11:04:02 -04:00
2008-09-25 11:04:00 -04:00
2007-06-22 14:49:31 -04:00
2008-09-25 11:04:03 -04:00
2008-09-25 11:04:03 -04:00
2008-09-25 11:04:03 -04:00
2008-09-25 11:04:00 -04:00
2007-06-12 09:07:21 -04:00
2008-09-25 11:03:57 -04:00