Skip to content

Commit 1039c6e

Browse files
Guillaume Naultdavem330
authored andcommitted
net: keep refcount warning in reqsk_free()
As Eric Dumazet said, "We do not have a way to tell if the req was ever inserted in a hash table, so better play safe.". Let's remove this comment, so that nobody will be tempted to drop the WARN_ON_ONCE() line. Signed-off-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1f5d861 commit 1039c6e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎include/net/request_sock.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ reqsk_alloc(const struct request_sock_ops *ops, struct sock *sk_listener,
108108

109109
static inline void reqsk_free(struct request_sock *req)
110110
{
111-
/* temporary debugging */
112111
WARN_ON_ONCE(refcount_read(&req->rsk_refcnt) != 0);
113112

114113
req->rsk_ops->destructor(req);

0 commit comments

Comments
 (0)