summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-25 16:01:30 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commit051e1b9f748ae673b7325d3fc049bb838606cffa (patch)
tree82d9d98a56ed776df8eee270dc9e11d7f0eb9d56 /fs/btrfs/disk-io.c
parenta213501153fd66e2359e091b1612841305ba6551 (diff)
downloadop-kernel-dev-051e1b9f748ae673b7325d3fc049bb838606cffa.zip
op-kernel-dev-051e1b9f748ae673b7325d3fc049bb838606cffa.tar.gz
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>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index f638803..ffc363d 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1684,6 +1684,7 @@ void btrfs_throttle(struct btrfs_root *root)
#else
blk_congestion_wait(WRITE, HZ/20);
#endif
+
}
}
OpenPOWER on IntegriCloud