Commit 7df551254add79a445d2e47e8f849cef8fee6e38
1 parent
f7d7fc0322
Exists in
master
and in
20 other branches
[TCP]: Fix sysctl_tcp_low_latency
When enabled, this should disable UCOPY prequeue'ing altogether, but it does not due to a missing test. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/ipv4/tcp.c
... | ... | @@ -1326,7 +1326,7 @@ |
1326 | 1326 | |
1327 | 1327 | cleanup_rbuf(sk, copied); |
1328 | 1328 | |
1329 | - if (tp->ucopy.task == user_recv) { | |
1329 | + if (!sysctl_tcp_low_latency && tp->ucopy.task == user_recv) { | |
1330 | 1330 | /* Install new reader */ |
1331 | 1331 | if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) { |
1332 | 1332 | user_recv = current; |