summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJan Kara <jack@suse.com>2015-12-07 14:29:17 -0500
committerTheodore Ts'o <tytso@mit.edu>2015-12-07 14:29:17 -0500
commit17048e8a083fec7ad841d88ef0812707fbc7e39f (patch)
treea5f6ac206edfbe5807e6f9834d6dfe663e9b31c6 /block
parentea3d7209ca01da209cda6f0dea8be9cc4b7a933b (diff)
downloadlinux-17048e8a083fec7ad841d88ef0812707fbc7e39f.tar.bz2
ext4: move unlocked dio protection from ext4_alloc_file_blocks()
Currently ext4_alloc_file_blocks() was handling protection against unlocked DIO. However we now need to sometimes call it under i_mmap_sem and sometimes not and DIO protection ranks above it (although strictly speaking this cannot currently create any deadlocks). Also ext4_zero_range() was actually getting & releasing unlocked DIO protection twice in some cases. Luckily it didn't introduce any real bug but it was a land mine waiting to be stepped on. So move DIO protection out from ext4_alloc_file_blocks() into the two callsites. Signed-off-by: Jan Kara <jack@suse.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions