tcp: add a spinlock to protect struct request_sock_queue
authorEric Dumazet <edumazet@google.com>
Fri, 2 Oct 2015 18:43:23 +0000 (11:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2015 11:32:36 +0000 (04:32 -0700)
commitfff1f3001cc58b5064a0f1154a7ac09b76f29c44
tree910fe6f27dc9b9b7c6a0a56a9442ee264c9a6667
parentf6d3125fa3c2f55ddf7cf69365c41089de6cfae6
tcp: add a spinlock to protect struct request_sock_queue

struct request_sock_queue fields are currently protected
by the listener 'lock' (not a real spinlock)

We need to add a private spinlock instead, so that softirq handlers
creating children do not have to worry with backlog notion
that the listener 'lock' carries.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/request_sock.h
net/core/request_sock.c
net/ipv4/inet_connection_sock.c