diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-08-20 13:39:41 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:06 -0400 |
commit | b64a2851ba25b3410a87d3d1b751155612105c8e (patch) | |
tree | 5bad12d67cfdd6657acbe1091dd1c196e5e17818 /fs/btrfs/transaction.c | |
parent | 4d1b5fb4d7075f862848dbff8873e22382abd482 (diff) |
Btrfs: Wait for async bio submissions to make some progress at queue time
Before, the btrfs bdi congestion function was used to test for too many
async bios. This keeps that check to throttle pdflush, but also
adds a check while queuing bios.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 6bcb0876f9bb..eff3ad72991b 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -322,8 +322,6 @@ int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans, | |||
322 | if (ret) | 322 | if (ret) |
323 | break; | 323 | break; |
324 | while(start <= end) { | 324 | while(start <= end) { |
325 | if (btrfs_congested_async(root->fs_info, 0)) | ||
326 | congestion_wait(WRITE, HZ/10); | ||
327 | cond_resched(); | 325 | cond_resched(); |
328 | 326 | ||
329 | index = start >> PAGE_CACHE_SHIFT; | 327 | index = start >> PAGE_CACHE_SHIFT; |