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)
Sat, Mar 8, 9:28 PM
Unknown Object (File)
Sat, Mar 8, 2:52 PM
Unknown Object (File)
Sat, Mar 8, 1:37 PM
Unknown Object (File)
Wed, Feb 26, 10:26 AM
Unknown Object (File)
Wed, Feb 12, 2:29 AM
Unknown Object (File)
Feb 9 2025, 7:51 AM
Unknown Object (File)
Feb 9 2025, 7:50 AM
Unknown Object (File)
Feb 9 2025, 7:47 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