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)
Sun, Aug 9, 6:42 PM
Unknown Object (File)
Sun, Aug 9, 6:41 PM
Unknown Object (File)
Fri, Aug 7, 8:59 PM
Unknown Object (File)
Fri, Aug 7, 4:39 PM
Unknown Object (File)
Fri, Aug 7, 6:57 AM
Unknown Object (File)
Fri, Aug 7, 6:57 AM
Unknown Object (File)
Fri, Aug 7, 6:57 AM
Unknown Object (File)
Fri, Aug 7, 6:56 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