aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-06-18 23:01:10 -0700
committerDavid S. Miller <davem@davemloft.net>2005-06-18 23:01:10 -0700
commit7df551254add79a445d2e47e8f849cef8fee6e38 (patch)
tree468a43ac3f94b9bf8618b102a7d609e29d3900f5 /net
parentf7d7fc0322c1770fe7ee836ca2732c2f88e2e1a4 (diff)
downloadkernel_samsung_espresso10-7df551254add79a445d2e47e8f849cef8fee6e38.zip
kernel_samsung_espresso10-7df551254add79a445d2e47e8f849cef8fee6e38.tar.gz
kernel_samsung_espresso10-7df551254add79a445d2e47e8f849cef8fee6e38.tar.bz2
[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.c2
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;