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
F107036417: D43816.id134098.diff
Thu, Jan 9, 7:57 AM
Unknown Object (File)
Nov 21 2024, 6:00 PM
Unknown Object (File)
Sep 29 2024, 2:43 AM
Unknown Object (File)
Sep 27 2024, 4:08 PM
Unknown Object (File)
Sep 16 2024, 12:44 PM
Unknown Object (File)
Sep 13 2024, 6:37 AM
Unknown Object (File)
Aug 30 2024, 11:02 AM
Unknown Object (File)
Aug 30 2024, 11:02 AM
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