aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-08-15 15:34:17 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:06 -0400
commit4854ddd0ed0a687fc2d7c45a529c406232e31e7b (patch)
tree6de9774969875cc30c21c96e145294727c56e73b /fs/btrfs/ctree.h
parent5443be45f5cb57d02fd895a0bcaf7e7d9890b1df (diff)
Btrfs: Wait for kernel threads to make progress during async submission
Before this change, btrfs would use a bdi congestion function to make sure there weren't too many pending async checksum work items. This change makes the process creating async work items wait instead, leading to fewer congestion returns from the bdi. This improves pdflush background_writeout scanning. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index bb4a8d2200d0..040213359393 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -526,6 +526,7 @@ struct btrfs_fs_info {
526 struct btrfs_transaction *running_transaction; 526 struct btrfs_transaction *running_transaction;
527 wait_queue_head_t transaction_throttle; 527 wait_queue_head_t transaction_throttle;
528 wait_queue_head_t transaction_wait; 528 wait_queue_head_t transaction_wait;
529 wait_queue_head_t async_submit_wait;
529 struct btrfs_super_block super_copy; 530 struct btrfs_super_block super_copy;
530 struct btrfs_super_block super_for_commit; 531 struct btrfs_super_block super_for_commit;
531 struct block_device *__bdev; 532 struct block_device *__bdev;