diff options
-rw-r--r-- | fs/jbd/journal.c | 2 | ||||
-rw-r--r-- | fs/jbd2/journal.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 59c09f9541b..89cd985aee0 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c | |||
@@ -129,6 +129,8 @@ static int kjournald(void *arg) | |||
129 | setup_timer(&journal->j_commit_timer, commit_timeout, | 129 | setup_timer(&journal->j_commit_timer, commit_timeout, |
130 | (unsigned long)current); | 130 | (unsigned long)current); |
131 | 131 | ||
132 | set_freezable(); | ||
133 | |||
132 | /* Record that the journal thread is running */ | 134 | /* Record that the journal thread is running */ |
133 | journal->j_task = current; | 135 | journal->j_task = current; |
134 | wake_up(&journal->j_wait_done_commit); | 136 | wake_up(&journal->j_wait_done_commit); |
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index c0a5f9f1b12..663e47cbaa7 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
@@ -139,6 +139,8 @@ static int kjournald2(void *arg) | |||
139 | setup_timer(&journal->j_commit_timer, commit_timeout, | 139 | setup_timer(&journal->j_commit_timer, commit_timeout, |
140 | (unsigned long)current); | 140 | (unsigned long)current); |
141 | 141 | ||
142 | set_freezable(); | ||
143 | |||
142 | /* Record that the journal thread is running */ | 144 | /* Record that the journal thread is running */ |
143 | journal->j_task = current; | 145 | journal->j_task = current; |
144 | wake_up(&journal->j_wait_done_commit); | 146 | wake_up(&journal->j_wait_done_commit); |