From: Jan Kara Date: Mon, 16 Jul 2007 06:37:18 +0000 (-0700) Subject: [PATCH] jbd commit: fix transaction dropping X-Git-Tag: v2.6.20.17~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd286b224aa466f0087e2d60bf765889d2da6e3;p=thirdparty%2Fkernel%2Fstable.git [PATCH] jbd commit: fix transaction dropping We have to check that also the second checkpoint list is non-empty before dropping the transaction. Signed-off-by: Jan Kara Cc: Chuck Ebbert Cc: Kirill Korotaev Cc: Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman Signed-off-by: Willy Tarreau --- diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index be4648bc7a2f8..84436cb7f5894 100644 --- a/fs/jbd/commit.c +++ b/fs/jbd/commit.c @@ -888,7 +888,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) { __journal_drop_transaction(journal, commit_transaction); } else { if (journal->j_checkpoint_transactions == NULL) {