]> git.karo-electronics.de Git - karo-tx-linux.git/commit
jbd: protect all log tail updates with j_checkpoint_mutex
authorJan Kara <jack@suse.cz>
Sat, 7 Apr 2012 10:50:13 +0000 (12:50 +0200)
committerJan Kara <jack@suse.cz>
Thu, 12 Apr 2012 15:20:30 +0000 (17:20 +0200)
commit34a7c01db30e52d19d1a433a60a68cce29638431
tree9e674d3b330c1ee62bd22d4883a7a8cd0dbf2aea
parentd340c593fc522972390ebf7103255d88ab793d87
jbd: protect all log tail updates with j_checkpoint_mutex

There are some log tail updates that are not protected by j_checkpoint_mutex.
Some of these are harmless because they happen during startup or shutdown but
updates in journal_commit_transaction() and journal_flush() can really race
with other log tail updates (e.g. someone doing journal_flush() with someone
running cleanup_journal_tail()). So protect all log tail updates with
j_checkpoint_mutex.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/jbd/commit.c
fs/jbd/journal.c