Page MenuHomeFreeBSD

Modernize geom_stats_snapshot_get
ClosedPublic

Authored by asomers on Mar 3 2021, 8:09 PM.
Tags
None
Referenced Files
F170625358: D29047.id.diff
Sat, Sep 5, 5:03 PM
F170571126: D29047.id85136.diff
Sat, Sep 5, 11:19 AM
F170533438: D29047.id85072.diff
Sat, Sep 5, 7:01 AM
Unknown Object (File)
Fri, Sep 4, 12:59 PM
Unknown Object (File)
Wed, Sep 2, 8:33 AM
Unknown Object (File)
Wed, Sep 2, 7:53 AM
Unknown Object (File)
Tue, Sep 1, 11:02 PM
Unknown Object (File)
Mon, Aug 31, 8:44 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