Page MenuHomeFreeBSD

socket: Simplify synchronization in soreceive_stream()
ClosedPublic

Authored by markj on Jul 8 2024, 4:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 30, 7:18 AM
Unknown Object (File)
Wed, Sep 17, 5:31 PM
Unknown Object (File)
Sep 5 2025, 7:33 AM
Unknown Object (File)
Sep 5 2025, 1:58 AM
Unknown Object (File)
Aug 10 2025, 10:20 PM
Unknown Object (File)
Aug 5 2025, 11:15 PM
Unknown Object (File)
Aug 1 2025, 4:56 PM
Unknown Object (File)
Jul 15 2025, 3:06 PM
Subscribers

Details

Summary

Now that the socket recv I/O lock is required in order to enable
receive-side KTLS (see commit 163cdf6a32b9a0f), 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 the
same check once before acquiring any locks.

Diff Detail

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