HomeFreeBSD

socket: Simplify synchronization in soreceive_stream()

Description

socket: Simplify synchronization in soreceive_stream()

Now that the socket recv I/O lock is required in order to enable
receive-side KTLS, we can move a check from out of the socket buffer
lock, which in turn will simplify some further refactoring.

Add a __predict_false annotation while here since we already perform a
lockless check before acquiring any locks.

Reviewed by: gallatin, jhb
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D45922

(cherry picked from commit 30f30ccae71ce6b3bbe7b2719a3d588cb46f97ba)

Details

Provenance
markjAuthored on Jul 9 2024, 2:33 PM
Reviewer
gallatin
Differential Revision
D45922: socket: Simplify synchronization in soreceive_stream()
Parents
rG030cbcc4c231: if_urndis: Organize buffer layouts more naturally
Branches
Unknown
Tags
Unknown