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)
Fri, Jan 24, 4:56 PM
Unknown Object (File)
Wed, Jan 22, 5:24 PM
Unknown Object (File)
Fri, Jan 17, 6:20 PM
Unknown Object (File)
Fri, Jan 17, 3:38 PM
Unknown Object (File)
Mon, Jan 6, 9:16 PM
Unknown Object (File)
Dec 23 2024, 3:28 PM
Unknown Object (File)
Nov 29 2024, 10:18 AM
Unknown Object (File)
Nov 27 2024, 8:58 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37547
Build 34436: arc lint + arc unit