diff options
author | Jan Kara <jack@suse.cz> | 2019-05-23 23:07:08 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-05-23 23:07:08 -0400 |
commit | 82a25b027ca48d7ef197295846b352345853dfa8 (patch) | |
tree | 3966300c54590f2562ce3c9453ad22bf75db62e7 /crypto | |
parent | 0a944e8a6c66ca04c7afbaa17e22bf208a8b37f0 (diff) |
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 'crypto')
0 files changed, 0 insertions, 0 deletions