HomeFreeBSD

Add a blocking counter KPI.

Description

Add a blocking counter KPI.

refcount(9) was recently extended to support waiting on a refcount to
drop to zero, as this was needed for a lockless VM object
paging-in-progress counter. However, this adds overhead to all uses of
refcount(9) and doesn't really match traditional refcounting semantics:
once a counter has dropped to zero, the protected object may be freed at
any point and it is not safe to dereference the counter.

This change removes that extension and instead adds a new set of KPIs,
blockcount_*, for use by VM object PIP and busy.

Reviewed by: jeff, kib, mjg
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23723

Details

Provenance
markjAuthored on
Reviewer
jeff
Differential Revision
D23723: Add a blocking counter KPI, blockcount(9).
Parents
rS358431: Add Denverton UART PCI ID
Branches
Unknown
Tags
Unknown