summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-02-01 11:42:42 +0100
committerTejun Heo <tj@kernel.org>2011-02-01 11:42:42 +0100
commitfd89d5f2030ac83324330bfd0bc73abf1beadaa6 (patch)
tree5368d06cf6cb5990ff9a58525c9c813d8d73adc3
parent40f38ffb72cd58452dc5afc25ca5215bb90538a4 (diff)
ext4: convert to alloc_workqueue()
Convert create_workqueue() to alloc_workqueue(). This is an identity conversion. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Andreas Dilger <adilger.kernel@dilger.ca> Cc: linux-ext4@vger.kernel.org
-rw-r--r--fs/ext4/super.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 48ce561fafa..0fcf6720af0 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)
percpu_counter_set(&sbi->s_dirtyblocks_counter, 0);
no_journal:
- EXT4_SB(sb)->dio_unwritten_wq = create_workqueue("ext4-dio-unwritten");
+ /*
+ * The maximum number of concurrent works can be high and
+ * concurrency isn't really necessary. Limit it to 1.
+ */
+ EXT4_SB(sb)->dio_unwritten_wq =
+ alloc_workqueue("ext4-dio-unwritten", WQ_MEM_RECLAIM, 1);
if (!EXT4_SB(sb)->dio_unwritten_wq) {
printk(KERN_ERR "EXT4-fs: failed to create DIO workqueue\n");
goto failed_mount_wq;