Page MenuHomeFreeBSD

Revert rest of a5970a529c2d95271: use vrefact() when working on fp->f_vnode
ClosedPublic

Authored by kib on Apr 13 2022, 11:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 11:30 AM
Unknown Object (File)
Mar 7 2024, 10:35 AM
Unknown Object (File)
Mar 7 2024, 10:30 AM
Unknown Object (File)
Mar 7 2024, 7:12 AM
Unknown Object (File)
Jan 17 2024, 8:35 AM
Unknown Object (File)
Jan 14 2024, 8:36 AM
Unknown Object (File)
Dec 23 2023, 1:41 AM
Unknown Object (File)
Dec 21 2023, 2:46 AM
Subscribers

Details

Summary
Now, since O_PATH-opened file descriptors use use references instead of
the hold reference, vrefact() chahges from that revision can be
reverted.

Diff Detail

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

Event Timeline

kib requested review of this revision.Apr 13 2022, 11:50 PM
This revision is now accepted and ready to land.Apr 14 2022, 3:27 AM

FYI, wanted to add some info. of how to repro. the issue. Doing a nullfs mount with nocache set and then doing an untar into that mount would fail on missing directory. With this change, that doesn't happen.

FYI, wanted to add some info. of how to repro. the issue. Doing a nullfs mount with nocache set and then doing an untar into that mount would fail on missing directory. With this change, that doesn't happen.

Well no. This change restores nanooptimization that was not compatible with the f_vnode only taking hold. I.e., the fix for your case was already committed.

OTOH it would be useful if you provide Peter with your test program and instructions how to reproduce, so that this case does not regress more.

OTOH it would be useful if you provide Peter with your test program and instructions how to reproduce, so that this case does not regress more.

I now have a regression test, based on the described tar extract scenario.
It no longer fails with "etc/periodic/daily/: Could not stat etc/periodic/daily: Not a directory"