Files
linux/net/tipc
Eric Dumazet e5b670e543 net: remove obsolete WARN_ON(refcount_read(&sk->sk_refcnt) == 1)
sk->sk_refcnt has been converted to refcount_t in 2017.

__sock_put(sk) being refcount_dec(&sk->sk_refcnt), it will complain
loudly if the current refcnt is 1 (or less) in a non racy way.

We can remove four WARN_ON() in favor of the generic refcount_dec()
check.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Xuanqiang Luo<luoxuanqiang@kylinos.cn>
Link: https://patch.msgid.link/20251014140605.2982703-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-15 17:18:38 -07:00
..
2024-07-12 03:41:32 +01:00
2025-10-03 10:24:14 -07:00
2021-10-13 09:40:46 -07:00
2021-10-13 09:40:46 -07:00
2022-01-27 13:53:27 +00:00
2021-05-18 13:22:09 -07:00
2021-03-29 16:28:50 -07:00
2025-10-03 10:24:14 -07:00