Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tcp: Remove stale locking comment for TFO.

The listener -> child locking no longer exists in the fast path
since commit e994b2f0fb92 ("tcp: do not lock listener to process
SYN packets").

Let's remove the stale comment for reqsk_fastopen_remove().

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250923005441.4131554-1-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Kuniyuki Iwashima and committed by
Jakub Kicinski
dc1dea79 e8ab2317

+1 -3
+1 -3
net/core/request_sock.c
··· 77 77 * a simple spin lock - one must consider sock_owned_by_user() and arrange 78 78 * to use sk_add_backlog() stuff. But what really makes it infeasible is the 79 79 * locking hierarchy violation. E.g., inet_csk_listen_stop() may try to 80 - * acquire a child's lock while holding listener's socket lock. A corner 81 - * case might also exist in tcp_v4_hnd_req() that will trigger this locking 82 - * order. 80 + * acquire a child's lock while holding listener's socket lock. 83 81 * 84 82 * This function also sets "treq->tfo_listener" to false. 85 83 * treq->tfo_listener is used by the listener so it is protected by the