Page MenuHomeFreeBSD

Modernize geom_stats_snapshot_get
ClosedPublic

Authored by asomers on Mar 3 2021, 8:09 PM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.