tcp: tsq: avoid one atomic in tcp_wfree()
authorEric Dumazet <edumazet@google.com>
Sat, 3 Dec 2016 19:14:53 +0000 (11:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 18:32:23 +0000 (13:32 -0500)
commita9b204d1564702b704ad6fe74f10a102c7b87ba3
tree44251778743174bb4e68c70225b19397f6c37c48
parentb223feb9de2a65c533ff95c08e834fa732906ea5
tcp: tsq: avoid one atomic in tcp_wfree()

Under high load, tcp_wfree() has an atomic operation trying
to schedule a tasklet over and over.

We can schedule it only if our per cpu list was empty.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c