Skip to content
Commit 6c20ec85 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

jbd2: Call the commit callback before the transaction could get dropped



The transaction can potentially get dropped if there are no buffers
that need to be written.  Make sure we call the commit callback before
potentially deciding to drop the transaction.  Also avoid
dereferencing the commit_transaction pointer in the marker for the
same reason.

This patch fixes the bug reported by Eric Paris at:
http://bugzilla.kernel.org/show_bug.cgi?id=11838

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Acked-by: default avatarEric Sandeen <sandeen@redhat.com>
Tested-by: default avatarEric Paris <eparis@redhat.com>
parent ef2cabf7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment