Page MenuHomeFreeBSD

Modernize geom_stats_snapshot_get
ClosedPublic

Authored by asomers on Mar 3 2021, 8:09 PM.
Tags
None
Referenced Files
F153101157: D29047.id.diff
Sun, Apr 19, 3:52 AM
Unknown Object (File)
Tue, Apr 14, 8:37 AM
Unknown Object (File)
Tue, Apr 14, 12:49 AM
Unknown Object (File)
Sat, Apr 11, 12:14 AM
Unknown Object (File)
Wed, Apr 8, 11:48 AM
Unknown Object (File)
Tue, Apr 7, 1:19 PM
Unknown Object (File)
Mar 15 2026, 1:36 PM
Unknown Object (File)
Mar 11 2026, 8:25 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