tcp: tcp_sendpages() should call tcp_push() once
[pandora-kernel.git] / net / ipv4 / tcp.c
index 2ff6f45..5d54ed3 100644 (file)
@@ -860,7 +860,7 @@ wait_for_memory:
        }
 
 out:
-       if (copied && !(flags & MSG_MORE))
+       if (copied && !(flags & MSG_SENDPAGE_NOTLAST))
                tcp_push(sk, flags, mss_now, tp->nonagle);
        return copied;