diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/sco.c | 1 | ||||
-rw-r--r-- | net/ipv4/tcp_output.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 79d87d8d4f51..fad0302bdb32 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c | |||
@@ -359,6 +359,7 @@ static void __sco_sock_close(struct sock *sk) | |||
359 | sco_chan_del(sk, ECONNRESET); | 359 | sco_chan_del(sk, ECONNRESET); |
360 | break; | 360 | break; |
361 | 361 | ||
362 | case BT_CONNECT2: | ||
362 | case BT_CONNECT: | 363 | case BT_CONNECT: |
363 | case BT_DISCONN: | 364 | case BT_DISCONN: |
364 | sco_chan_del(sk, ECONNRESET); | 365 | sco_chan_del(sk, ECONNRESET); |
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 163cf5fc0119..af354c98fdb5 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1640,8 +1640,11 @@ static bool tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb) | |||
1640 | goto send_now; | 1640 | goto send_now; |
1641 | } | 1641 | } |
1642 | 1642 | ||
1643 | /* Ok, it looks like it is advisable to defer. */ | 1643 | /* Ok, it looks like it is advisable to defer. |
1644 | tp->tso_deferred = 1 | (jiffies << 1); | 1644 | * Do not rearm the timer if already set to not break TCP ACK clocking. |
1645 | */ | ||
1646 | if (!tp->tso_deferred) | ||
1647 | tp->tso_deferred = 1 | (jiffies << 1); | ||
1645 | 1648 | ||
1646 | return true; | 1649 | return true; |
1647 | 1650 | ||