Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251717
b: refs/heads/master
c: 229309c
h: refs/heads/master
i:
  251715: a5f3919
v: v3
  • Loading branch information
Jan Kara authored and Theodore Ts'o committed May 8, 2011
1 parent d195ac9 commit a169c23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 667eff35a1f56fa74ce98a0c7c29a40adc1ba4e3
refs/heads/master: 229309caebe4508d650bb6d8f7d51f2b116f5bbd
9 changes: 7 additions & 2 deletions trunk/fs/jbd2/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,13 @@ void jbd2_journal_commit_transaction(journal_t *journal)
required. */
JBUFFER_TRACE(jh, "file as BJ_Forget");
jbd2_journal_file_buffer(jh, commit_transaction, BJ_Forget);
/* Wake up any transactions which were waiting for this
IO to complete */
/*
* Wake up any transactions which were waiting for this IO to
* complete. The barrier must be here so that changes by
* jbd2_journal_file_buffer() take effect before wake_up_bit()
* does the waitqueue check.
*/
smp_mb();
wake_up_bit(&bh->b_state, BH_Unshadow);
JBUFFER_TRACE(jh, "brelse shadowed buffer");
__brelse(bh);
Expand Down

0 comments on commit a169c23

Please sign in to comment.