diff options
author | Lukas Czerner <lczerner@redhat.com> | 2015-06-15 07:23:53 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-06-15 07:23:53 +0300 |
commit | 0d306dcf86e8f065dff42a4a934ae9d99af35ba5 (patch) | |
tree | b743cc959d2d401bbe9e33f5fdcdb931f08175ea /fs/ext4/balloc.c | |
parent | 4134f5c88dcd5b00e4a5f37c3842b2b831a61ee1 (diff) | |
download | linux-0d306dcf86e8f065dff42a4a934ae9d99af35ba5.tar.xz |
ext4: wait for existing dio workers in ext4_alloc_file_blocks()
Currently existing dio workers can jump in and potentially increase
extent tree depth while we're allocating blocks in
ext4_alloc_file_blocks(). This may cause us to underestimate the
number of credits needed for the transaction because the extent tree
depth can change after our estimation.
Fix this by waiting for all the existing dio workers in the same way
as we do it in ext4_punch_hole. We've seen errors caused by this in
xfstest generic/299, however it's really hard to reproduce.
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/balloc.c')
0 files changed, 0 insertions, 0 deletions