mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 10:01:25 +00:00
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>
This commit is contained in:
parent
4d1b5fb4d7
commit
b64a2851ba
4 changed files with 27 additions and 10 deletions
|
@ -73,4 +73,5 @@ int btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct inode *inode,
|
|||
int rw, struct bio *bio, int mirror_num,
|
||||
extent_submit_bio_hook_t *submit_bio_hook);
|
||||
int btrfs_congested_async(struct btrfs_fs_info *info, int iodone);
|
||||
unsigned long btrfs_async_submit_limit(struct btrfs_fs_info *info);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue