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, Oct 15, 8:29 PM
Unknown Object (File)
Wed, Oct 15, 8:28 PM
Unknown Object (File)
Wed, Oct 15, 8:28 PM
Unknown Object (File)
Wed, Oct 15, 10:07 AM
Unknown Object (File)
Thu, Oct 9, 7:57 AM
Unknown Object (File)
Sep 6 2025, 1:42 PM
Unknown Object (File)
Sep 2 2025, 5:12 AM
Unknown Object (File)
Aug 27 2025, 3:06 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable