diff options
author | Jan Kara <[email protected]> | 2016-02-19 00:33:21 -0500 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2016-02-19 00:33:21 -0500 |
commit | 74dae4278546b897eb81784fdfcce872ddd8b2b8 (patch) | |
tree | 1f8933f3ec2715cdfcbac993cf0409e884caf11c /scripts/gdb/linux/cpus.py | |
parent | ed8ad83808f009ade97ebbf6519bc3a97fefbc0c (diff) |
ext4: fix crashes in dioread_nolock mode
Competing overwrite DIO in dioread_nolock mode will just overwrite
pointer to io_end in the inode. This may result in data corruption or
extent conversion happening from IO completion interrupt because we
don't properly set buffer_defer_completion() when unlocked DIO races
with locked DIO to unwritten extent.
Since unlocked DIO doesn't need io_end for anything, just avoid
allocating it and corrupting pointer from inode for locked DIO.
A cleaner fix would be to avoid these games with io_end pointer from the
inode but that requires more intrusive changes so we leave that for
later.
Cc: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions