diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-08-15 15:34:17 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:06 -0400 |
commit | 4854ddd0ed0a687fc2d7c45a529c406232e31e7b (patch) | |
tree | 6de9774969875cc30c21c96e145294727c56e73b /fs/btrfs/ctree.h | |
parent | 5443be45f5cb57d02fd895a0bcaf7e7d9890b1df (diff) | |
download | lwn-4854ddd0ed0a687fc2d7c45a529c406232e31e7b.tar.gz lwn-4854ddd0ed0a687fc2d7c45a529c406232e31e7b.zip |
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.h | 1 |
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 { struct btrfs_transaction *running_transaction; wait_queue_head_t transaction_throttle; wait_queue_head_t transaction_wait; + wait_queue_head_t async_submit_wait; struct btrfs_super_block super_copy; struct btrfs_super_block super_for_commit; struct block_device *__bdev; |