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, Dec 22, 11:57 PM
Unknown Object (File)
Fri, Dec 19, 2:53 AM
Unknown Object (File)
Tue, Dec 16, 7:52 AM
Unknown Object (File)
Mon, Dec 15, 7:30 PM
Unknown Object (File)
Thu, Dec 11, 4:21 PM
Unknown Object (File)
Thu, Nov 27, 5:43 AM
Unknown Object (File)
Wed, Nov 26, 9:59 AM
Unknown Object (File)
Nov 11 2025, 6:07 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable