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)
Wed, Jul 22, 5:35 PM
Unknown Object (File)
Sat, Jul 18, 5:14 AM
Unknown Object (File)
Fri, Jul 17, 2:56 PM
Unknown Object (File)
Fri, Jul 10, 11:01 PM
Unknown Object (File)
Jun 23 2026, 2:17 AM
Unknown Object (File)
Jun 22 2026, 4:28 PM
Unknown Object (File)
Jun 21 2026, 5:33 PM
Unknown Object (File)
Jun 19 2026, 12:27 AM
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