Skip to contentSkip to conversation

tcp: Remove stale locking comment for TFO.

PATCH Applied Kuniyuki Iwashima 2 participants 2 messages Sep 23, 2025 – Sep 24, 2025

Subsystems (3)
lore
Share & tools
lore

Kuniyuki Iwashima

author maintainer
#0 lore raw

PATCH 1/1 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().

---
 net/core/request_sock.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
net/core/request_sock.c +1 -3
index 63de5c635842..897a8f01a67b 100644
@@ -77,9 +77,7 @@ void reqsk_queue_alloc(struct request_sock_queue *queue)
  * a simple spin lock - one must consider sock_owned_by_user() and arrange
  * to use sk_add_backlog() stuff. But what really makes it infeasible is the
  * locking hierarchy violation. E.g., inet_csk_listen_stop() may try to
- * acquire a child's lock while holding listener's socket lock. A corner
- * case might also exist in tcp_v4_hnd_req() that will trigger this locking
- * order.
+ * acquire a child's lock while holding listener's socket lock.
  *
  * This function also sets "treq->tfo_listener" to false.
  * treq->tfo_listener is used by the listener so it is protected by the
Signature · 1 line
2.51.0.534.gc79095c0ca-goog
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Tue, 23 Sep 2025 00:54:19 +0000 you wrote:

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().

[...]

Here is the summary with links:
- [v1,net-next] tcp: Remove stale locking comment for TFO.

    https://git.kernel.org/netdev/net-next/c/dc1dea796b19

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html