Skip to content

Commit 40fac64

Browse files
Christoph Hellwigkdave
authored andcommitted
btrfs: restore the thread_pool= behavior in remount for the end I/O workqueues
Commit d7b9416 ("btrfs: remove btrfs_end_io_wq") converted the read and I/O handling from btrfs_workqueues to Linux workqueues, and as part of that lost the code to apply the thread_pool= based max_active limit on remount. Restore it. Fixes: d7b9416 ("btrfs: remove btrfs_end_io_wq") CC: [email protected] # 6.0+ Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 2280d42 commit 40fac64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/btrfs/super.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,8 @@ static void btrfs_resize_thread_pool(struct btrfs_fs_info *fs_info,
16311631
btrfs_workqueue_set_max(fs_info->hipri_workers, new_pool_size);
16321632
btrfs_workqueue_set_max(fs_info->delalloc_workers, new_pool_size);
16331633
btrfs_workqueue_set_max(fs_info->caching_workers, new_pool_size);
1634+
workqueue_set_max_active(fs_info->endio_workers, new_pool_size);
1635+
workqueue_set_max_active(fs_info->endio_meta_workers, new_pool_size);
16341636
btrfs_workqueue_set_max(fs_info->endio_write_workers, new_pool_size);
16351637
btrfs_workqueue_set_max(fs_info->endio_freespace_worker, new_pool_size);
16361638
btrfs_workqueue_set_max(fs_info->delayed_workers, new_pool_size);

0 commit comments

Comments
 (0)