• Li Dongyang's avatar
    ext4: don't mark mmp buffer head dirty · fe18d649
    Li Dongyang authored
    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 <dongyangli@ddn.com>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
    Cc: stable@vger.kernel.org
    fe18d649
mmp.c 9.9 KB