HomeFreeBSD

cache: use counter(9) API to maintain statistics

Description

cache: use counter(9) API to maintain statistics

Previously the code would just increment statistics while only holding a
shared lock, in effect losing updates.

Separate tracking for nchstats is removed as values can be obtained from
existing counters. Note that some fields are updated by external
consumers and are left unfixed. This should not be a serious issue as
this structure looks quite obsolete.

No strong objections: kib

Details

Provenance
mjgAuthored on
Parents
rS294474: iw_cxgbe: fix a couple of problems int the RDMA_TERMINATE handler.
Branches
Unknown
Tags
Unknown