Drop locks in btrfs_search_slot when reading a tree block.
One lock per btree block can make for significant congestion if everyone has to wait for IO at the high levels of the btree. This drops locks held by a path when doing reads during a tree search. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
@@ -88,7 +88,6 @@ static int cache_block_group(struct btrfs_root *root,
|
||||
return -ENOMEM;
|
||||
|
||||
path->reada = 2;
|
||||
path->skip_locking = 1;
|
||||
first_free = block_group->key.objectid;
|
||||
key.objectid = block_group->key.objectid;
|
||||
key.offset = 0;
|
||||
|
Reference in New Issue
Block a user