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

Details

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