HomeFreeBSD

Improve unix socket PCB refcounting.

Description

Improve unix socket PCB refcounting.

  • Use refcount_init().
  • Define an INVARIANTS-only zone destructor to assert that various bits of PCB state aren't left dangling.
  • Annotate unp_pcb_rele() with __result_use_check.
  • Simplify control flow.

Reviewed by: glebius, kevans, kib
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26295

Details

Provenance
markjAuthored on
Reviewer
glebius
Differential Revision
D26295: [unix(4) cleanup 2/8] Improve unix socket refcounting.
Parents
rS365759: Update unix domain socket locking comments.
Branches
Unknown
Tags
Unknown