diff options
author | Jan Kara <jack@suse.cz> | 2016-09-22 11:44:06 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-09-22 11:44:06 -0400 |
commit | e03a9976afce6634826d56c33531dd10bb9a9166 (patch) | |
tree | 5cd08ff2ed8a983a96f485680416e840fd095194 /fs/ext4 | |
parent | 7c5f6b320b59cb4a674750bbb29a248b5bae7641 (diff) | |
download | linux-e03a9976afce6634826d56c33531dd10bb9a9166.tar.bz2 |
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: 1eaa566d368b214d99cbb973647c1b0b8102a9ae
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions