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, Jan 22, 5:22 PM
Unknown Object (File)
Sat, Jan 18, 9:19 PM
Unknown Object (File)
Sat, Jan 18, 5:28 PM
Unknown Object (File)
Wed, Jan 15, 7:43 AM
Unknown Object (File)
Tue, Jan 14, 12:46 PM
Unknown Object (File)
Tue, Jan 14, 12:37 PM
Unknown Object (File)
Dec 26 2024, 1:37 PM
Unknown Object (File)
Dec 4 2024, 1:32 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.