diff options
author | Tejun Heo <tj@kernel.org> | 2011-02-01 11:42:42 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-02-01 11:42:42 +0100 |
commit | 28aadf51693f56c41326ebbc795318a49011b12d (patch) | |
tree | 18fe5ba43f28495407d6a46d61203efb99b978f9 /fs/reiserfs | |
parent | 316873c958eee302952edcadb8dc72d6d3d19d3c (diff) | |
download | linux-stable-28aadf51693f56c41326ebbc795318a49011b12d.tar.gz linux-stable-28aadf51693f56c41326ebbc795318a49011b12d.tar.bz2 linux-stable-28aadf51693f56c41326ebbc795318a49011b12d.zip |
reiserfs: make commit_wq use the default concurrency level
The maximum number of concurrent work items queued on commit_wq is
bound by the number of active journals. Convert to alloc_workqueue()
and use the default concurrency level so that they can be processed in
parallel.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: reiserfs-devel@vger.kernel.org
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 3eea859e6990..c77514bd5776 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c @@ -2876,7 +2876,7 @@ int journal_init(struct super_block *sb, const char *j_dev_name, reiserfs_mounted_fs_count++; if (reiserfs_mounted_fs_count <= 1) { reiserfs_write_unlock(sb); - commit_wq = create_workqueue("reiserfs"); + commit_wq = alloc_workqueue("reiserfs", WQ_MEM_RECLAIM, 0); reiserfs_write_lock(sb); } |