Skip to content

Commit

Permalink
Merge branch 'pm-sleep'
Browse files Browse the repository at this point in the history
* pm-sleep:
  PM / Sleep: JBD and JBD2 missing set_freezable()
  • Loading branch information
Rafael J. Wysocki committed Mar 16, 2012
2 parents 59fb53e + 35c8042 commit cf3bbca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/jbd/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ static int kjournald(void *arg)
setup_timer(&journal->j_commit_timer, commit_timeout,
(unsigned long)current);

set_freezable();

/* Record that the journal thread is running */
journal->j_task = current;
wake_up(&journal->j_wait_done_commit);
Expand Down
2 changes: 2 additions & 0 deletions fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ static int kjournald2(void *arg)
setup_timer(&journal->j_commit_timer, commit_timeout,
(unsigned long)current);

set_freezable();

/* Record that the journal thread is running */
journal->j_task = current;
wake_up(&journal->j_wait_done_commit);
Expand Down

0 comments on commit cf3bbca

Please sign in to comment.