android_kernel_google_msm/fs/jbd
Jan Kara acaf0ed4bd jbd: Fix lock ordering bug in journal_unmap_buffer()
commit 25389bb207 upstream.

Commit 09e05d48 introduced a wait for transaction commit into
journal_unmap_buffer() in the case we are truncating a buffer undergoing commit
in the page stradding i_size on a filesystem with blocksize < pagesize. Sadly
we forgot to drop buffer lock before waiting for transaction commit and thus
deadlock is possible when kjournald wants to lock the buffer.

Fix the problem by dropping the buffer lock before waiting for transaction
commit. Since we are still holding page lock (and that is OK), buffer cannot
disappear under us.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-12-03 11:47:10 -08:00
..
Kconfig
Makefile
checkpoint.c jbd: Issue cache flush after checkpointing 2012-01-11 13:36:57 +01:00
commit.c jbd: Fix assertion failure in commit code due to lacking transaction credits 2012-10-21 09:28:01 -07:00
journal.c Power management updates for 3.4 2012-03-21 10:15:51 -07:00
recovery.c jbd: Issue cache flush after checkpointing 2012-01-11 13:36:57 +01:00
revoke.c jbd: clear revoked flag on buffers before a new transaction started 2011-11-22 01:20:53 +01:00
transaction.c jbd: Fix lock ordering bug in journal_unmap_buffer() 2012-12-03 11:47:10 -08:00