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

(cherry picked from commit a19ae1b099ad4d43588f15ef19b8506f606b27cb)

Details

Provenance
rincebrain_gmail.comAuthored on Jun 2 2021, 1:00 PM
mjgCommitted on Jun 7 2021, 12:27 AM
Reviewer
mjg
Differential Revision
D30610: Revert vn_write behavior difference
Parents
rG8421c612ee01: sctp: fix locking in case of error handling during a restart
Branches
Unknown
Tags
Unknown