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
Unknown Object (File)
Thu, Mar 21, 2:03 PM
Unknown Object (File)
Tue, Mar 5, 3:18 PM
Unknown Object (File)
Feb 20 2024, 8:45 PM
Unknown Object (File)
Feb 1 2024, 4:31 PM
Unknown Object (File)
Dec 20 2023, 4:36 AM
Unknown Object (File)
Dec 12 2023, 3:46 AM
Unknown Object (File)
Nov 20 2023, 5:38 AM
Unknown Object (File)
Nov 8 2023, 6:06 PM
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

Lint
Lint Skipped
Unit
Tests Skipped

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.