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