diff options
author | Jan Kara <jack@suse.cz> | 2019-05-24 05:07:08 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-05-24 05:07:08 +0200 |
commit | 82a25b027ca48d7ef197295846b352345853dfa8 (patch) | |
tree | 3966300c54590f2562ce3c9453ad22bf75db62e7 /Documentation/atomic_t.txt | |
parent | ext4: don't perform block validity checks on the journal inode (diff) | |
download | linux-82a25b027ca48d7ef197295846b352345853dfa8.tar.xz linux-82a25b027ca48d7ef197295846b352345853dfa8.zip |
ext4: wait for outstanding dio during truncate in nojournal mode
We didn't wait for outstanding direct IO during truncate in nojournal
mode (as we skip orphan handling in that case). This can lead to fs
corruption or stale data exposure if truncate ends up freeing blocks
and these get reallocated before direct IO finishes. Fix the condition
determining whether the wait is necessary.
CC: stable@vger.kernel.org
Fixes: 1c9114f9c0f1 ("ext4: serialize unlocked dio reads with truncate")
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions