Page MenuHomeFreeBSD

tcp: use CALLOUT_TRYLOCK for the TCP callout
ClosedPublic

Authored by glebius on Jun 26 2024, 3:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 5:17 PM
Unknown Object (File)
Sep 28 2024, 4:20 AM
Unknown Object (File)
Sep 26 2024, 6:28 PM
Unknown Object (File)
Sep 25 2024, 4:18 AM
Unknown Object (File)
Sep 22 2024, 12:21 PM
Unknown Object (File)
Sep 22 2024, 3:39 AM
Unknown Object (File)
Sep 21 2024, 11:38 PM
Unknown Object (File)
Sep 20 2024, 10:42 AM
Subscribers

Details

Summary

This allows to remove the drop of the lock tcp_timer_enter(), which closes
a sophisticated but possible race that involves three threads. In case we
got a callout executing and two threads trying to close the connection,
e.g. and interrupt and a syscall, then lock yielding in tcp_timer_enter()
may transfer lock from one closing thread to the other closing thread,
instead of the callout.

Diff Detail

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