Page MenuHomeFreeBSD

Modernize geom_stats_snapshot_get
ClosedPublic

Authored by asomers on Mar 3 2021, 8:09 PM.
Tags
None
Referenced Files
F162850699: D29047.id85072.diff
Fri, Jul 17, 2:56 PM
Unknown Object (File)
Fri, Jul 10, 11:01 PM
Unknown Object (File)
Tue, Jun 23, 2:17 AM
Unknown Object (File)
Mon, Jun 22, 4:28 PM
Unknown Object (File)
Sun, Jun 21, 5:33 PM
Unknown Object (File)
Fri, Jun 19, 12:27 AM
Unknown Object (File)
Thu, Jun 18, 1:27 PM
Unknown Object (File)
Wed, Jun 17, 10:59 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