Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

+1 -1
+1 -1
net/ipv4/tcp.c
··· 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;