]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tcp: Remove stale locking comment for TFO.
authorKuniyuki Iwashima <kuniyu@google.com>
Tue, 23 Sep 2025 00:54:19 +0000 (00:54 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 Sep 2025 01:21:36 +0000 (18:21 -0700)
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>
net/core/request_sock.c

index 63de5c635842b6f9e6d92f2a28a69009e54ec68c..897a8f01a67b4e09197da2241bc5c33ea3d90c29 100644 (file)
@@ -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