aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-02-26 09:49:09 -0800
committerDavid S. Miller <davem@davemloft.net>2019-02-26 13:16:02 -0800
commit6c7b4ee7f96d77a40e474f7541c4e543a669dbde (patch)
treee3806fde386be3057bf3f42c6693b101553f2296 /net/ipv4
parenttc-testing: gitignore, ignore local tdc config file (diff)
downloadlinux-dev-6c7b4ee7f96d77a40e474f7541c4e543a669dbde.tar.xz
linux-dev-6c7b4ee7f96d77a40e474f7541c4e543a669dbde.zip
tcp: get rid of tcp_check_send_head()
This helper is used only once, and its name is no longer relevant. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 769508c75dce..e2fa6eb9f81a 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1412,7 +1412,8 @@ do_fault:
/* It is the one place in all of TCP, except connection
* reset, where we can be unlinking the send_head.
*/
- tcp_check_send_head(sk, skb);
+ if (tcp_write_queue_empty(sk))
+ tcp_chrono_stop(sk, TCP_CHRONO_BUSY);
sk_wmem_free_skb(sk, skb);
}