Btrfs: unlock nodes earlier when inserting items in a btree
authorFilipe Manana <fdmanana@suse.com>
Mon, 28 Jul 2014 18:34:35 +0000 (19:34 +0100)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:55 +0000 (13:37 -0700)
In ctree.c:setup_items_for_insert(), we can unlock all nodes in our
path before we process the leaf (shift items and data, adjust data
offsets, etc). This allows for better btree concurrency, as we're
often holding a write lock on at least the node at level 1.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>

No differences found