Page MenuHomeFreeBSD

socket: Simplify synchronization in soreceive_stream()
ClosedPublic

Authored by markj on Jul 8 2024, 4:25 PM.
Tags
None
Referenced Files
F106178750: D45922.diff
Thu, Dec 26, 4:49 PM
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58571
Build 55459: arc lint + arc unit