[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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user