HomeFreeBSD

Modernize geom_stats_snapshot_get

Description

Modernize geom_stats_snapshot_get

  • 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
Reviewed by: phk
Differential Revision: https://reviews.freebsd.org/D29047

Details

Provenance
asomersAuthored on Mar 3 2021, 8:06 PM
Reviewer
phk
Differential Revision
D29047: Modernize geom_stats_snapshot_get
Parents
rG63749bfe96b7: release: sprinkle UNAME_r hacks following c883b6fd8ccd
Branches
Unknown
Tags
Unknown