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)
Sat, May 16, 10:59 AM
Unknown Object (File)
Sat, May 16, 10:14 AM
Unknown Object (File)
Thu, May 7, 12:19 AM
Unknown Object (File)
Sun, May 3, 5:16 PM
Unknown Object (File)
Wed, Apr 29, 5:03 AM
Unknown Object (File)
Sun, Apr 26, 5:39 PM
Unknown Object (File)
Tue, Apr 21, 1:52 PM
Unknown Object (File)
Mon, Apr 20, 3:16 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