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)
Mon, Feb 10, 7:53 AM
Unknown Object (File)
Mon, Feb 10, 7:48 AM
Unknown Object (File)
Mon, Jan 27, 1:13 PM
Unknown Object (File)
Fri, Jan 24, 4:56 PM
Unknown Object (File)
Wed, Jan 22, 5:24 PM
Unknown Object (File)
Fri, Jan 17, 6:20 PM
Unknown Object (File)
Fri, Jan 17, 3:38 PM
Unknown Object (File)
Jan 6 2025, 9:16 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