diff options
-rw-r--r-- | fs/ext4/super.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 48ce561fafac..0fcf6720af09 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -3507,7 +3507,12 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) | |||
3507 | percpu_counter_set(&sbi->s_dirtyblocks_counter, 0); | 3507 | percpu_counter_set(&sbi->s_dirtyblocks_counter, 0); |
3508 | 3508 | ||
3509 | no_journal: | 3509 | no_journal: |
3510 | EXT4_SB(sb)->dio_unwritten_wq = create_workqueue("ext4-dio-unwritten"); | 3510 | /* |
3511 | * The maximum number of concurrent works can be high and | ||
3512 | * concurrency isn't really necessary. Limit it to 1. | ||
3513 | */ | ||
3514 | EXT4_SB(sb)->dio_unwritten_wq = | ||
3515 | alloc_workqueue("ext4-dio-unwritten", WQ_MEM_RECLAIM, 1); | ||
3511 | if (!EXT4_SB(sb)->dio_unwritten_wq) { | 3516 | if (!EXT4_SB(sb)->dio_unwritten_wq) { |
3512 | printk(KERN_ERR "EXT4-fs: failed to create DIO workqueue\n"); | 3517 | printk(KERN_ERR "EXT4-fs: failed to create DIO workqueue\n"); |
3513 | goto failed_mount_wq; | 3518 | goto failed_mount_wq; |