HomeFreeBSD

Split nhop_ref_object().

Description

Split nhop_ref_object().

Now nhop_ref_object() unconditionally acquires a reference, and the new
nhop_try_ref_object() uses refcount_acquire_if_not_zero() to
conditionally acquire a reference. Since the former is cheaper, use it
when we know that the initial counter value is non-zero. No functional
change intended.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D25535

Details

Provenance
markjAuthored on Jul 6 2020, 9:20 PM
Parents
rGd3112319ac84: src.conf.5: regen after r362972, r362973, RISC-V EFI support
Branches
Unknown
Tags
Unknown

Event Timeline