summaryrefslogtreecommitdiffstats
path: root/lib/zlib_deflate
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2019-05-10 21:45:33 -0400
committerTheodore Ts'o <tytso@mit.edu>2019-05-10 21:45:33 -0400
commit57a0da28ced8707cb9f79f071a016b9d005caf5a (patch)
treeae7aa73980716ce76c8d30ff37211a6e457a629e /lib/zlib_deflate
parent0d52154bb0a700abb459a2cbce0a30fc2549b67e (diff)
downloadlinux-57a0da28ced8707cb9f79f071a016b9d005caf5a.tar.bz2
ext4: fix data corruption caused by overlapping unaligned and aligned IO
Unaligned AIO must be serialized because the zeroing of partial blocks of unaligned AIO can result in data corruption in case it's overlapping another in flight IO. Currently we wait for all unwritten extents before we submit unaligned AIO which protects data in case of unaligned AIO is following overlapping IO. However if a unaligned AIO is followed by overlapping aligned AIO we can still end up corrupting data. To fix this, we must make sure that the unaligned AIO is the only IO in flight by waiting for unwritten extents conversion not just before the IO submission, but right after it as well. This problem can be reproduced by xfstest generic/538 Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org
Diffstat (limited to 'lib/zlib_deflate')
0 files changed, 0 insertions, 0 deletions