Commit fe18d649 authored by Li Dongyang's avatar Li Dongyang Committed by Theodore Ts'o

ext4: don't mark mmp buffer head dirty

Marking mmp bh dirty before writing it will make writeback
pick up mmp block later and submit a write, we don't want the
duplicate write as kmmpd thread should have full control of
reading and writing the mmp block.
Another reason is we will also have random I/O error on
the writeback request when blk integrity is enabled, because
kmmpd could modify the content of the mmp block(e.g. setting
new seq and time) while the mmp block is under I/O requested
by writeback.
Signed-off-by: default avatarLi Dongyang <>
Signed-off-by: default avatarTheodore Ts'o <>
Reviewed-by: default avatarAndreas Dilger <>
parent 338affb5
......@@ -49,7 +49,6 @@ static int write_mmp_block(struct super_block *sb, struct buffer_head *bh)
ext4_mmp_csum_set(sb, mmp);
bh->b_end_io = end_buffer_write_sync;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment