Re: [PATCH] jbd2: Fix assertion 'jh->b_frozen_data == NULL' failure when journal aborted

From: Theodore Ts'o
Date: Fri Jul 22 2022 - 09:59:49 EST


On Fri, 15 Jul 2022 20:51:52 +0800, Zhihao Cheng wrote:
> Following process will fail assertion 'jh->b_frozen_data == NULL' in
> jbd2_journal_dirty_metadata():
>
> jbd2_journal_commit_transaction
> unlink(dir/a)
> jh->b_transaction = trans1
> jh->b_jlist = BJ_Metadata
> journal->j_running_transaction = NULL
> trans1->t_state = T_COMMIT
> unlink(dir/b)
> handle->h_trans = trans2
> do_get_write_access
> jh->b_modified = 0
> jh->b_frozen_data = frozen_buffer
> jh->b_next_transaction = trans2
> jbd2_journal_dirty_metadata
> is_handle_aborted
> is_journal_aborted // return false
>
> [...]

Applied, thanks!

[1/1] jbd2: Fix assertion 'jh->b_frozen_data == NULL' failure when journal aborted
commit: 4b18734448a3ee7100c5936a7fc0f9b1f2567e07

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>