diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 1aed1f4616b..92e14dd9bdd 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1386,7 +1386,14 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
1386 | * devices | 1386 | * devices |
1387 | */ | 1387 | */ |
1388 | fs_info->submit_workers.idle_thresh = 64; | 1388 | fs_info->submit_workers.idle_thresh = 64; |
1389 | fs_info->workers.idle_thresh = 32; | 1389 | |
1390 | /* fs_info->workers is responsible for checksumming file data | ||
1391 | * blocks and metadata. Using a larger idle thresh allows each | ||
1392 | * worker thread to operate on things in roughly the order they | ||
1393 | * were sent by the writeback daemons, improving overall locality | ||
1394 | * of the IO going down the pipe. | ||
1395 | */ | ||
1396 | fs_info->workers.idle_thresh = 128; | ||
1390 | 1397 | ||
1391 | btrfs_init_workers(&fs_info->fixup_workers, "fixup", 1); | 1398 | btrfs_init_workers(&fs_info->fixup_workers, "fixup", 1); |
1392 | btrfs_init_workers(&fs_info->endio_workers, "endio", | 1399 | btrfs_init_workers(&fs_info->endio_workers, "endio", |