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)
Fri, Nov 29, 10:18 AM
Unknown Object (File)
Wed, Nov 27, 8:58 AM
Unknown Object (File)
Mon, Nov 25, 1:31 PM
Unknown Object (File)
Nov 21 2024, 9:39 PM
Unknown Object (File)
Nov 19 2024, 2:02 PM
Unknown Object (File)
Nov 19 2024, 3:04 AM
Unknown Object (File)
Nov 16 2024, 8:26 AM
Unknown Object (File)
Nov 16 2024, 8:26 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