diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2012-10-10 01:04:58 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-10-30 23:26:41 +0000 |
commit | 814a7833df19e1de7447f870ae890adb12561627 (patch) | |
tree | ed283b0395ba9af30c9041efeeb441684d330d97 /sound | |
parent | ba3385bc8c513fd741f09ef75e53e0e6547b079e (diff) |
ext4: race-condition protection for ext4_convert_unwritten_extents_endio
commit dee1f973ca341c266229faa5a1a5bb268bed3531 upstream.
We assumed that at the time we call ext4_convert_unwritten_extents_endio()
extent in question is fully inside [map.m_lblk, map->m_len] because
it was already split during submission. But this may not be true due to
a race between writeback vs fallocate.
If extent in question is larger than requested we will split it again.
Special precautions should being done if zeroout required because
[map.m_lblk, map->m_len] already contains valid data.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions