Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jack@suse.cz>
Cc: Chuck Ebbert <cebbert@redhat.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: <linux-ext4@vger.kernel.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jan Kara and committed by
Linus Torvalds
fe28e42b 09561f44

+2 -1
+2 -1
fs/jbd/commit.c
··· 887 887 journal->j_committing_transaction = NULL; 888 888 spin_unlock(&journal->j_state_lock); 889 889 890 - if (commit_transaction->t_checkpoint_list == NULL) { 890 + if (commit_transaction->t_checkpoint_list == NULL && 891 + commit_transaction->t_checkpoint_io_list == NULL) { 891 892 __journal_drop_transaction(journal, commit_transaction); 892 893 } else { 893 894 if (journal->j_checkpoint_transactions == NULL) {