linux/fs/jbd2
Jan Kara e03a9976af jbd2: fix lockdep annotation in add_transaction_credits()
Thomas has reported a lockdep splat hitting in
add_transaction_credits(). The problem is that that function calls
jbd2_might_wait_for_commit() while holding j_state_lock which is wrong
(we do not really wait for transaction commit while holding that lock).

Fix the problem by moving jbd2_might_wait_for_commit() into places where
we are ready to wait for transaction commit and thus j_state_lock is
unlocked.

Cc: stable@vger.kernel.org
Fixes: 1eaa566d36
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-09-22 11:44:06 -04:00
..
Kconfig
Makefile
checkpoint.c
commit.c
journal.c jbd2: move more common code into journal_init_common() 2016-09-15 12:02:32 -04:00
recovery.c
revoke.c
transaction.c jbd2: fix lockdep annotation in add_transaction_credits() 2016-09-22 11:44:06 -04:00