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)
Sun, Jul 12, 3:16 PM
Unknown Object (File)
Tue, Jul 7, 5:16 PM
Unknown Object (File)
Jun 18 2026, 4:45 AM
Unknown Object (File)
Jun 18 2026, 2:40 AM
Unknown Object (File)
Jun 17 2026, 7:01 AM
Unknown Object (File)
Jun 16 2026, 4:37 AM
Unknown Object (File)
May 19 2026, 9:39 PM
Unknown Object (File)
May 3 2026, 7:24 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