Home
last modified time | relevance | path

Searched hist:"82 a25b027ca48d7ef197295846b352345853dfa8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/ext4/
H A Dinode.cdiff 82a25b027ca48d7ef197295846b352345853dfa8 Thu May 23 22:07:08 CDT 2019 Jan Kara <jack@suse.cz> 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>