Page MenuHomeFreeBSD

Modernize geom_stats_snapshot_get
ClosedPublic

Authored by asomers on Mar 3 2021, 8:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 2, 10:52 PM
Unknown Object (File)
Jan 13 2026, 6:41 PM
Unknown Object (File)
Dec 29 2025, 8:46 PM
Unknown Object (File)
Dec 26 2025, 7:46 PM
Unknown Object (File)
Dec 22 2025, 11:57 PM
Unknown Object (File)
Dec 19 2025, 2:53 AM
Unknown Object (File)
Dec 16 2025, 7:52 AM
Unknown Object (File)
Dec 15 2025, 7:30 PM
Subscribers

Details

Summary
  • A logically useless memset() is used to fault in some memory pages. Change it to explicit_bzero so the compiler won't eliminate it.
  • Eliminate the second memset. It made sense in the days of the Big Kernel Lock, but not in the days of fine-grained SMP and especially not in the days of VDSO.

MFC after: 2 weeks
Sponsored by: Axcient

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37547
Build 34436: arc lint + arc unit