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)
Feb 9 2024, 9:17 AM
Unknown Object (File)
Jan 10 2024, 1:29 PM
Unknown Object (File)
Jan 8 2024, 4:30 AM
Unknown Object (File)
Jan 7 2024, 10:51 AM
Unknown Object (File)
Dec 20 2023, 6:44 AM
Unknown Object (File)
Oct 7 2023, 8:34 AM
Unknown Object (File)
Sep 7 2023, 2:09 PM
Unknown Object (File)
Sep 3 2023, 8:46 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