Page MenuHomeFreeBSD

VFS: update VOP_FSYNC() debug check to reflect actual locking policy
ClosedPublic

Authored by jah on Feb 10 2024, 4:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 7, 1:59 PM
Unknown Object (File)
Sun, Apr 5, 7:44 PM
Unknown Object (File)
Fri, Mar 27, 11:01 AM
Unknown Object (File)
Thu, Mar 26, 2:24 PM
Unknown Object (File)
Mar 14 2026, 8:15 PM
Unknown Object (File)
Mar 13 2026, 1:15 PM
Unknown Object (File)
Mar 13 2026, 5:43 AM
Unknown Object (File)
Mar 11 2026, 7:50 PM
Subscribers

Details

Summary

Shared vs. exclusive locking is determined not by MNT_EXTENDED_SHARED
but by MNT_SHARED_WRITES (although there are several places that
ignore this and simply always use an exclusive lock). Also add a
comment on the possible difference between VOP_GETWRITEMOUNT(vp)
and vp->v_mount on this path.

Found by local testing of unionfs atop ZFS with DEBUG_VFS_LOCKS.

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable