Skip to content

Commit

Permalink
[TCP]: Fix sysctl_tcp_low_latency
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jun 19, 2005
1 parent f7d7fc0 commit 7df5512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7df5512

Please sign in to comment.