diff options
| author | Jan Kara <jack@suse.cz> | 2020-07-08 18:35:16 +0300 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2020-08-06 08:05:46 +0300 |
| commit | 0b3171b6d195637f84ddf8b59bae818ea20bc8ac (patch) | |
| tree | 6b42f17fa36f96a449d665d60002330acf90f14d /scripts/gdb/linux/proc.py | |
| parent | e65bf6e468c39a60c1dfae439198ad875bb8a870 (diff) | |
| download | linux-0b3171b6d195637f84ddf8b59bae818ea20bc8ac.tar.xz | |
ext4: do not block RWF_NOWAIT dio write on unallocated space
Since commit 378f32bab371 ("ext4: introduce direct I/O write using iomap
infrastructure") we don't properly bail out of RWF_NOWAIT direct IO
write if underlying blocks are not allocated. Also
ext4_dio_write_checks() does not honor RWF_NOWAIT when re-acquiring
i_rwsem. Fix both issues.
Fixes: 378f32bab371 ("ext4: introduce direct I/O write using iomap infrastructure")
Cc: stable@kernel.org
Reported-by: Filipe Manana <fdmanana@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/20200708153516.9507-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions
