X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=fs%2Fjbd2%2Fcommit.c;h=4d99685fdce43b5ebb1c5ccbcab5a89c2443747a;hb=3897b82c3586e774260d6bca56cc1efca79cd335;hp=e0139786f717839ff5c7b5f542449593c1fcab54;hpb=886c35fbcf6fb2eee15687efc2d64d99b6ad9a4a;p=linux-kernel-docs%2Flinux-2.6.git diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index e0139786f7..4d99685fdc 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -560,7 +560,9 @@ void jbd2_journal_commit_transaction(journal_t *journal) * transaction! Now comes the tricky part: we need to write out * metadata. Loop over the transaction's entire buffer list: */ + spin_lock(&journal->j_state_lock); commit_transaction->t_state = T_COMMIT; + spin_unlock(&journal->j_state_lock); stats.u.run.rs_logging = jiffies; stats.u.run.rs_flushing = jbd2_time_diff(stats.u.run.rs_flushing,