Page MenuHomeFreeBSD

Modernize geom_stats_snapshot_get
ClosedPublic

Authored by asomers on Mar 3 2021, 8:09 PM.
Tags
None
Referenced Files
F135606242: D29047.diff
Tue, Nov 11, 6:07 AM
F135600128: D29047.id85136.diff
Tue, Nov 11, 4:55 AM
Unknown Object (File)
Thu, Nov 6, 10:22 PM
Unknown Object (File)
Tue, Oct 28, 11:39 AM
Unknown Object (File)
Mon, Oct 27, 6:54 AM
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
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