Page MenuHomeFreeBSD

sctp: Avoid unnecessary refcount bumps in sctp_inpcb_bind()
ClosedPublic

Authored by markj on Aug 30 2021, 9:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 5, 8:34 PM
Unknown Object (File)
Sat, Sep 26, 8:58 PM
Unknown Object (File)
Fri, Sep 25, 10:33 PM
Unknown Object (File)
Fri, Sep 25, 9:10 PM
Unknown Object (File)
Sat, Sep 12, 5:32 PM
Unknown Object (File)
Sep 6 2026, 8:05 PM
Unknown Object (File)
Sep 6 2026, 8:05 PM
Unknown Object (File)
Sep 5 2026, 3:43 PM
Subscribers

Details

Summary

We only drop the inp lock when binding to a specific port. So, only
acquire an extra reference when required. This simplifies error
handling a bit.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable