Skip to content
Commit f9efa9c7 authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent 3f157a2f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment