Page MenuHomeFreeBSD

vfs: add vfs_ref_from_vp and use it in statfs
ClosedPublic

Authored by mjg on Feb 15 2021, 10:24 PM.
Tags
None
Referenced Files
F121901762: D28695.id83979.diff
Mon, Jun 30, 11:57 AM
F121898467: D28695.diff
Mon, Jun 30, 11:10 AM
Unknown Object (File)
Sun, Jun 29, 6:27 AM
Unknown Object (File)
Tue, Jun 24, 6:43 AM
Unknown Object (File)
May 28 2025, 5:12 AM
Unknown Object (File)
May 8 2025, 9:59 AM
Unknown Object (File)
May 7 2025, 2:09 AM
Unknown Object (File)
May 6 2025, 10:40 AM
Subscribers
None

Details

Summary

This will be 2 commits. I'm not fond of the name (vfs_ref_from_vp) but I don't see anything substantially better.

statfs keeps being used by 12.x world on each readdir call and this avoidably serializes with a lock against other threads (most notaby when they modify the content). With the change this is elided.

Diff Detail

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

Event Timeline

mjg requested review of this revision.Feb 15 2021, 10:24 PM
mjg created this revision.
mjg edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Feb 20 2021, 3:21 PM
This revision was automatically updated to reflect the committed changes.