HomeFreeBSD

vfs: fix MNT_SYNCHRONOUS check in vn_write

Description

vfs: fix MNT_SYNCHRONOUS check in vn_write

ca1ce50b2b5ef11d ("vfs: add more safety against concurrent forced
unmount to vn_write") has a side effect of only checking MNT_SYNCHRONOUS
if O_FSYNC is set.

Reviewed By: mjg
Differential Revision: https://reviews.freebsd.org/D30610

Details

Provenance
rincebrain_gmail.comAuthored on Jun 2 2021, 1:00 PM
mjgCommitted on Jun 2 2021, 1:42 PM
Reviewer
mjg
Differential Revision
D30610: Revert vn_write behavior difference
Parents
rG2422138952d8: Fix the KCSAN_ENABLED check when building modules
Branches
Unknown
Tags
Unknown