mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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>
This commit is contained in:
parent
09561f44c7
commit
fe28e42b99
1 changed files with 2 additions and 1 deletions
|
@ -887,7 +887,8 @@ void journal_commit_transaction(journal_t *journal)
|
|||
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) {
|
||||
|
|
Loading…
Reference in a new issue