aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2019-05-23 23:07:08 -0400
committerTheodore Ts'o <[email protected]>2019-05-23 23:07:08 -0400
commit82a25b027ca48d7ef197295846b352345853dfa8 (patch)
tree3966300c54590f2562ce3c9453ad22bf75db62e7 /net/lapb/lapb_in.c
parent0a944e8a6c66ca04c7afbaa17e22bf208a8b37f0 (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: [email protected] Fixes: 1c9114f9c0f1 ("ext4: serialize unlocked dio reads with truncate") Reviewed-by: Ira Weiny <[email protected]> Signed-off-by: Jan Kara <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions