diff options
Diffstat (limited to 'fs/jbd')
-rw-r--r-- | fs/jbd/commit.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index 69b180459463..f486ff697781 100644 --- a/fs/jbd/commit.c +++ b/fs/jbd/commit.c | |||
@@ -722,8 +722,13 @@ wait_for_iobuf: | |||
722 | required. */ | 722 | required. */ |
723 | JBUFFER_TRACE(jh, "file as BJ_Forget"); | 723 | JBUFFER_TRACE(jh, "file as BJ_Forget"); |
724 | journal_file_buffer(jh, commit_transaction, BJ_Forget); | 724 | journal_file_buffer(jh, commit_transaction, BJ_Forget); |
725 | /* Wake up any transactions which were waiting for this | 725 | /* |
726 | IO to complete */ | 726 | * Wake up any transactions which were waiting for this |
727 | * IO to complete. The barrier must be here so that changes | ||
728 | * by journal_file_buffer() take effect before wake_up_bit() | ||
729 | * does the waitqueue check. | ||
730 | */ | ||
731 | smp_mb(); | ||
727 | wake_up_bit(&bh->b_state, BH_Unshadow); | 732 | wake_up_bit(&bh->b_state, BH_Unshadow); |
728 | JBUFFER_TRACE(jh, "brelse shadowed buffer"); | 733 | JBUFFER_TRACE(jh, "brelse shadowed buffer"); |
729 | __brelse(bh); | 734 | __brelse(bh); |