1 ext4: don't mark mmp buffer head dirty
3 From: Li Dongyang <dongyangli@ddn.com>
5 Marking mmp bh dirty before writing it will make writeback
6 pick up mmp block later and submit a write, we don't want the
7 duplicate write as kmmpd thread should have full control of
8 reading and writing the mmp block.
9 Another reason is we will also have random I/O error on
10 the writeback request when blk integrity is enabled, because
11 kmmpd could modify the content of the mmp block(e.g. setting
12 new seq and time) while the mmp block is under I/O requested
15 Signed-off-by: Li Dongyang <dongyangli@ddn.com>
16 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
17 Reviewed-by: Andreas Dilger <adilger@dilger.ca>
18 Cc: stable@vger.kernel.org
21 1 file changed, 1 deletion(-)
23 diff --git a/fs/ext4/mmp.c b/fs/ext4/mmp.c
24 index 39b07c2d3384..2305b4374fd3 100644
27 @@ -49,7 +49,6 @@ static int write_mmp_block(struct super_block *sb, struct buffer_head *bh)
30 ext4_mmp_csum_set(sb, mmp);
31 - mark_buffer_dirty(bh);
33 bh->b_end_io = end_buffer_write_sync;