diff options
author | David S. Miller <davem@davemloft.net> | 2005-06-19 02:01:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-19 02:01:10 -0400 |
commit | 7df551254add79a445d2e47e8f849cef8fee6e38 (patch) | |
tree | 468a43ac3f94b9bf8618b102a7d609e29d3900f5 /net | |
parent | f7d7fc0322c1770fe7ee836ca2732c2f88e2e1a4 (diff) |
[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')
-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 3a4c52e77e01..674bbd8cfd36 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, | |||
1326 | 1326 | ||
1327 | cleanup_rbuf(sk, copied); | 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 | /* Install new reader */ | 1330 | /* Install new reader */ |
1331 | if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) { | 1331 | if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) { |
1332 | user_recv = current; | 1332 | user_recv = current; |