Page MenuHomeFreeBSD

vop_fsync_debugprepost(): take account of nullfs
ClosedPublic

Authored by kib on Aug 4 2025, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 14 2026, 10:30 AM
Unknown Object (File)
Apr 29 2026, 9:25 AM
Unknown Object (File)
Apr 29 2026, 9:16 AM
Unknown Object (File)
Apr 28 2026, 2:30 PM
Unknown Object (File)
Apr 28 2026, 11:32 AM
Unknown Object (File)
Apr 28 2026, 9:03 AM
Unknown Object (File)
Apr 24 2026, 4:29 PM
Unknown Object (File)
Apr 23 2026, 11:21 AM
Subscribers

Diff Detail

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

Event Timeline

kib requested review of this revision.Aug 4 2025, 8:13 PM

I reproduced the problem using a -o nocache nullfs mount, since that disables writing with shared locks held (why?). This patch fixes the crash.

This revision is now accepted and ready to land.Aug 4 2025, 10:02 PM

I reproduced the problem using a -o nocache nullfs mount, since that disables writing with shared locks held (why?).

Because with nocache we are guaranteed that new nullfs vnode must be instantiated with each bypass call. That requires the lower vnode to be locked exclusively.

This revision was automatically updated to reflect the committed changes.