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 Sep 15 2020, 7:21 PM
Parents
rGd5cbccecd857: Update unix domain socket locking comments.
Branches
Unknown
Tags
Unknown

Event Timeline