]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[PATCH] jbd2 commit: fix transaction dropping
authorJan Kara <jack@suse.cz>
Mon, 16 Jul 2007 06:37:20 +0000 (23:37 -0700)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Aug 2007 15:24:12 +0000 (17:24 +0200)
We have to check that also the second checkpoint list is non-empty before
dropping the transaction.

Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Chuck Ebbert <cebbert@redhat.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/jbd2/commit.c

index 6bd8005e3d34434d95fac5037d79d4042af34678..7d29549125604ea024f8fa1afe3eff3aaf6f8095 100644 (file)
@@ -897,7 +897,8 @@ restart_loop:
        journal->j_committing_transaction = NULL;
        spin_unlock(&journal->j_state_lock);
 
-       if (commit_transaction->t_checkpoint_list == NULL) {
+       if (commit_transaction->t_checkpoint_list == NULL &&
+           commit_transaction->t_checkpoint_io_list == NULL) {
                __jbd2_journal_drop_transaction(journal, commit_transaction);
        } else {
                if (journal->j_checkpoint_transactions == NULL) {