diff options
-rw-r--r-- | fs/reiserfs/journal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 04e3c42a085..2f8a7e7b8da 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
@@ -2933,8 +2933,11 @@ int journal_init(struct super_block *sb, const char *j_dev_name, | |||
2933 | } | 2933 | } |
2934 | 2934 | ||
2935 | reiserfs_mounted_fs_count++; | 2935 | reiserfs_mounted_fs_count++; |
2936 | if (reiserfs_mounted_fs_count <= 1) | 2936 | if (reiserfs_mounted_fs_count <= 1) { |
2937 | reiserfs_write_unlock(sb); | ||
2937 | commit_wq = create_workqueue("reiserfs"); | 2938 | commit_wq = create_workqueue("reiserfs"); |
2939 | reiserfs_write_lock(sb); | ||
2940 | } | ||
2938 | 2941 | ||
2939 | INIT_DELAYED_WORK(&journal->j_work, flush_async_commits); | 2942 | INIT_DELAYED_WORK(&journal->j_work, flush_async_commits); |
2940 | journal->j_work_sb = sb; | 2943 | journal->j_work_sb = sb; |