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)
Sun, Dec 1, 5:50 PM
Unknown Object (File)
Nov 24 2024, 9:39 AM
Unknown Object (File)
Oct 25 2024, 2:55 AM
Unknown Object (File)
Oct 19 2024, 3:40 PM
Unknown Object (File)
Oct 9 2024, 1:15 PM
Unknown Object (File)
Oct 6 2024, 3:35 PM
Unknown Object (File)
Oct 3 2024, 2:16 PM
Unknown Object (File)
Oct 3 2024, 12:02 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