tcp: small changes in reqsk_put() and reqsk_free()
authorEric Dumazet <edumazet@google.com>
Wed, 5 Jun 2024 07:15:51 +0000 (07:15 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Jun 2024 13:18:04 +0000 (15:18 +0200)
commitc34506406dd5cfb352f8c53bb6a1b9535c0905dd
tree97925102486c99f489eacfca20f12a415756d890
parentfe300258a501d647dca6f7104f4dfea2ec33c581
tcp: small changes in reqsk_put() and reqsk_free()

In reqsk_free(), use DEBUG_NET_WARN_ON_ONCE()
instead of WARN_ON_ONCE() for a condition which never fired.

In reqsk_put() directly call __reqsk_free(), there is no
point checking rsk_refcnt again right after a transition to zero.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/request_sock.h