mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
Btrfs: Limit the number of async bio submission kthreads to the number of devices
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
db69e0ebae
commit
b720d20952
1 changed files with 3 additions and 1 deletions
|
@ -1348,7 +1348,9 @@ struct btrfs_root *open_ctree(struct super_block *sb,
|
|||
* cannot dynamically grow.
|
||||
*/
|
||||
btrfs_init_workers(&fs_info->workers, fs_info->thread_pool_size);
|
||||
btrfs_init_workers(&fs_info->submit_workers, fs_info->thread_pool_size);
|
||||
btrfs_init_workers(&fs_info->submit_workers,
|
||||
min_t(u64, fs_devices->num_devices,
|
||||
fs_info->thread_pool_size));
|
||||
|
||||
/* a higher idle thresh on the submit workers makes it much more
|
||||
* likely that bios will be send down in a sane order to the
|
||||
|
|
Loading…
Reference in a new issue