aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 4a5ebafb935a..66466d125c05 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1329,11 +1329,13 @@ struct btrfs_root *open_ctree(struct super_block *sb,
1329 */ 1329 */
1330 btrfs_init_workers(&fs_info->workers, fs_info->thread_pool_size); 1330 btrfs_init_workers(&fs_info->workers, fs_info->thread_pool_size);
1331 btrfs_init_workers(&fs_info->submit_workers, fs_info->thread_pool_size); 1331 btrfs_init_workers(&fs_info->submit_workers, fs_info->thread_pool_size);
1332 btrfs_init_workers(&fs_info->fixup_workers, 1);
1332 btrfs_init_workers(&fs_info->endio_workers, fs_info->thread_pool_size); 1333 btrfs_init_workers(&fs_info->endio_workers, fs_info->thread_pool_size);
1333 btrfs_init_workers(&fs_info->endio_write_workers, 1334 btrfs_init_workers(&fs_info->endio_write_workers,
1334 fs_info->thread_pool_size); 1335 fs_info->thread_pool_size);
1335 btrfs_start_workers(&fs_info->workers, 1); 1336 btrfs_start_workers(&fs_info->workers, 1);
1336 btrfs_start_workers(&fs_info->submit_workers, 1); 1337 btrfs_start_workers(&fs_info->submit_workers, 1);
1338 btrfs_start_workers(&fs_info->fixup_workers, 1);
1337 btrfs_start_workers(&fs_info->endio_workers, fs_info->thread_pool_size); 1339 btrfs_start_workers(&fs_info->endio_workers, fs_info->thread_pool_size);
1338 btrfs_start_workers(&fs_info->endio_write_workers, 1340 btrfs_start_workers(&fs_info->endio_write_workers,
1339 fs_info->thread_pool_size); 1341 fs_info->thread_pool_size);
@@ -1454,6 +1456,7 @@ fail_tree_root:
1454fail_sys_array: 1456fail_sys_array:
1455fail_sb_buffer: 1457fail_sb_buffer:
1456 extent_io_tree_empty_lru(&BTRFS_I(fs_info->btree_inode)->io_tree); 1458 extent_io_tree_empty_lru(&BTRFS_I(fs_info->btree_inode)->io_tree);
1459 btrfs_stop_workers(&fs_info->fixup_workers);
1457 btrfs_stop_workers(&fs_info->workers); 1460 btrfs_stop_workers(&fs_info->workers);
1458 btrfs_stop_workers(&fs_info->endio_workers); 1461 btrfs_stop_workers(&fs_info->endio_workers);
1459 btrfs_stop_workers(&fs_info->endio_write_workers); 1462 btrfs_stop_workers(&fs_info->endio_write_workers);
@@ -1710,6 +1713,7 @@ int close_ctree(struct btrfs_root *root)
1710 1713
1711 truncate_inode_pages(fs_info->btree_inode->i_mapping, 0); 1714 truncate_inode_pages(fs_info->btree_inode->i_mapping, 0);
1712 1715
1716 btrfs_stop_workers(&fs_info->fixup_workers);
1713 btrfs_stop_workers(&fs_info->workers); 1717 btrfs_stop_workers(&fs_info->workers);
1714 btrfs_stop_workers(&fs_info->endio_workers); 1718 btrfs_stop_workers(&fs_info->endio_workers);
1715 btrfs_stop_workers(&fs_info->endio_write_workers); 1719 btrfs_stop_workers(&fs_info->endio_write_workers);