diff options
author | David S. Miller <davem@davemloft.net> | 2008-01-11 06:56:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-29 00:01:42 +0100 |
commit | 9993e7d313e80bdc005d09c7def91903e0068f07 (patch) | |
tree | ed7c65b35fd3392948ab2f6b225f69225fdcbba8 /net/ipv4/tcp_timer.c | |
parent | [NETNS]: Use the per-net ipv6_devconf(_all) in sysctl handlers (diff) | |
download | linux-9993e7d313e80bdc005d09c7def91903e0068f07.tar.xz linux-9993e7d313e80bdc005d09c7def91903e0068f07.zip |
[TCP]: Do not purge sk_forward_alloc entirely in tcp_delack_timer().
Otherwise we beat heavily on the global tcp_memory atomics
when all of the sockets in the system are slowly sending
perioding packet clumps.
Noticed and suggested by Eric Dumazet.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index 17931be6d584..803d758a2b12 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c @@ -186,7 +186,7 @@ static void tcp_delack_timer(unsigned long data) goto out_unlock; } - sk_mem_reclaim(sk); + sk_mem_reclaim_partial(sk); if (sk->sk_state == TCP_CLOSE || !(icsk->icsk_ack.pending & ICSK_ACK_TIMER)) goto out; |