]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: move qlen/young out of struct listen_sock
authorEric Dumazet <edumazet@google.com>
Fri, 2 Oct 2015 18:43:24 +0000 (11:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2015 11:32:36 +0000 (04:32 -0700)
commit707c7b3db2fbde19e8646f50524ab3b191c85441
treeb8817f56e96322e7c855653fe63eced1256c8356
parentc158132c33fe2e1796cdc79f2648a68133090dea
tcp: move qlen/young out of struct listen_sock

qlen_inc & young_inc were protected by listener lock,
while qlen_dec & young_dec were atomic fields.

Everything needs to be atomic for upcoming lockless listener.

Also move qlen/young in request_sock_queue as we'll get rid
of struct listen_sock eventually.

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
net/ipv4/inet_diag.c