summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingming Cao <cmm@us.ibm.com>2011-03-05 11:52:45 -0500
committerTheodore Ts'o <tytso@mit.edu>2011-03-05 11:52:45 -0500
commit198868f35de99e7197829314076e5465c37e4cc5 (patch)
tree04d6044250667f150787bedf68db6ac3732458c9
parentb616844310a6c8a4ab405d3436bbb6e53cfd852f (diff)
downloadop-kernel-dev-198868f35de99e7197829314076e5465c37e4cc5.zip
op-kernel-dev-198868f35de99e7197829314076e5465c37e4cc5.tar.gz
ext4: Use single thread to perform DIO unwritten convertion
While running ext4 testing on multiple core, we found there are per cpu ext4-dio-unwritten threads processing conversion from unwritten extents to written for IOs completed from async direct IO patch. Per filesystem is enough, we don't need per cpu threads to work on conversion. Signed-off-by: Mingming Cao <cmm@us.ibm.com>
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 9eaec22..b357c27 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3514,7 +3514,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
percpu_counter_set(&sbi->s_dirtyblocks_counter, 0);
no_journal:
- EXT4_SB(sb)->dio_unwritten_wq = create_workqueue("ext4-dio-unwritten");
+ EXT4_SB(sb)->dio_unwritten_wq = create_singlethread_workqueue("ext4-dio-unwritten");
if (!EXT4_SB(sb)->dio_unwritten_wq) {
printk(KERN_ERR "EXT4-fs: failed to create DIO workqueue\n");
goto failed_mount_wq;
OpenPOWER on IntegriCloud