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)
Sep 23 2024, 5:32 PM
Unknown Object (File)
Sep 22 2024, 6:46 PM
Unknown Object (File)
Sep 10 2024, 4:34 PM
Unknown Object (File)
Sep 6 2024, 2:15 AM
Unknown Object (File)
Sep 1 2024, 2:49 PM
Unknown Object (File)
Aug 20 2024, 12:02 PM
Unknown Object (File)
Aug 20 2024, 12:02 PM
Unknown Object (File)
Aug 20 2024, 12:02 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.