Page MenuHomeFreeBSD

vop_fsync_debugprepost(): take account of nullfs
ClosedPublic

Authored by kib on Aug 4 2025, 8:13 PM.
Tags
None
Referenced Files
F132472531: D51730.id159730.diff
Fri, Oct 17, 5:30 AM
Unknown Object (File)
Fri, Oct 10, 5:28 PM
Unknown Object (File)
Fri, Oct 10, 5:28 PM
Unknown Object (File)
Fri, Oct 10, 5:28 PM
Unknown Object (File)
Fri, Oct 10, 12:18 PM
Unknown Object (File)
Wed, Oct 8, 9:31 PM
Unknown Object (File)
Tue, Oct 7, 10:38 AM
Unknown Object (File)
Fri, Oct 3, 2:21 PM
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.