summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJan Kara2016-05-11 11:58:49 +0200
committerVishal Verma2016-05-17 08:44:07 +0200
commit86b0624e42d03a424e9571b8591d191c436f9af1 (patch)
treea00a6ccf33d6f1880ce18f455d8259dc3dc1a326 /firmware
parentext2: Fix block zeroing in ext2_get_blocks() for DAX (diff)
downloadkernel-qcow2-linux-86b0624e42d03a424e9571b8591d191c436f9af1.tar.gz
kernel-qcow2-linux-86b0624e42d03a424e9571b8591d191c436f9af1.tar.xz
kernel-qcow2-linux-86b0624e42d03a424e9571b8591d191c436f9af1.zip
ext2: Avoid DAX zeroing to corrupt data
Currently ext2 zeroes any data blocks allocated for DAX inode however it still returns them as BH_New. Thus DAX code zeroes them again in dax_insert_mapping() which can possibly overwrite the data that has been already stored to those blocks by a racing dax_io(). Avoid marking pre-zeroed buffers as new. Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions