diff options
author | David S. Miller <davem@davemloft.net> | 2005-06-18 23:01:10 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-18 23:01:10 -0700 |
commit | 7df551254add79a445d2e47e8f849cef8fee6e38 (patch) | |
tree | 468a43ac3f94b9bf8618b102a7d609e29d3900f5 /net/ipv4 | |
parent | f7d7fc0322c1770fe7ee836ca2732c2f88e2e1a4 (diff) | |
download | op-kernel-dev-7df551254add79a445d2e47e8f849cef8fee6e38.zip op-kernel-dev-7df551254add79a445d2e47e8f849cef8fee6e38.tar.gz |
[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>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 3a4c52e..674bbd8 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -1326,7 +1326,7 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, cleanup_rbuf(sk, copied); - if (tp->ucopy.task == user_recv) { + if (!sysctl_tcp_low_latency && tp->ucopy.task == user_recv) { /* Install new reader */ if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) { user_recv = current; |