Page MenuHomeFreeBSD

socket: Simplify synchronization in soreceive_stream()
ClosedPublic

Authored by markj on Jul 8 2024, 4:25 PM.
Tags
None
Referenced Files
F124955353: D45922.id140723.diff
Fri, Aug 1, 4:56 PM
Unknown Object (File)
Tue, Jul 15, 3:06 PM
Unknown Object (File)
Wed, Jul 9, 11:39 AM
Unknown Object (File)
Mon, Jul 7, 3:57 AM
Unknown Object (File)
Sun, Jul 6, 7:35 PM
Unknown Object (File)
Sat, Jul 5, 7:05 PM
Unknown Object (File)
Jun 24 2025, 11:45 AM
Unknown Object (File)
Jun 21 2025, 8:01 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