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)
Wed, Dec 4, 1:32 PM
Unknown Object (File)
Wed, Dec 4, 1:32 PM
Unknown Object (File)
Wed, Dec 4, 1:31 PM
Unknown Object (File)
Wed, Dec 4, 1:31 PM
Unknown Object (File)
Wed, Dec 4, 1:09 PM
Unknown Object (File)
Wed, Nov 27, 5:48 AM
Unknown Object (File)
Nov 19 2024, 7:26 AM
Unknown Object (File)
Nov 18 2024, 4:41 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

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.