net: Use a percpu_counter for orphan_count
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 26 Nov 2008 05:17:14 +0000 (21:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 05:17:14 +0000 (21:17 -0800)
commitdd24c00191d5e4a1ae896aafe33c6b8095ab4bd1
treee955c09e0b288e50c706b6ee409229d5a930c80c
parent1748376b6626acf59c24e9592ac67b3fe2a0e026
net: Use a percpu_counter for orphan_count

Instead of using one atomic_t per protocol, use a percpu_counter
for "orphan_count", to reduce cache line contention on
heavy duty network servers.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
include/net/tcp.h
net/dccp/dccp.h
net/dccp/proto.c
net/ipv4/inet_connection_sock.c
net/ipv4/proc.c
net/ipv4/tcp.c
net/ipv4/tcp_timer.c