]> git.karo-electronics.de Git - linux-beck.git/commit
jbd2: track more dependencies on transaction commit
authorJan Kara <jack@suse.cz>
Thu, 30 Jun 2016 15:40:54 +0000 (11:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 30 Jun 2016 15:40:54 +0000 (11:40 -0400)
commit1eaa566d368b214d99cbb973647c1b0b8102a9ae
tree30f6f17f9dbc22a3ca6ff014c1c38a69f645c00d
parentab714aff4f744f52f0beae93ed441f2f5585eb7a
jbd2: track more dependencies on transaction commit

So far we were tracking only dependency on transaction commit due to
starting a new handle (which may require commit to start a new
transaction). Now add tracking also for other cases where we wait for
transaction commit. This way lockdep can catch deadlocks e. g. because we
call jbd2_journal_stop() for a synchronous handle with some locks held
which rank below transaction start.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c
fs/jbd2/transaction.c
include/linux/jbd2.h