]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tcp: Kill extraneous SPLICE_F_NONBLOCK checks.
authorDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2009 08:59:00 +0000 (00:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2009 08:59:00 +0000 (00:59 -0800)
commit7945cc6464a4db0caf6dfacdfe05806051c4cb7b
tree8bcd5f9cb276229f1b25844249a4243b6f95f656
parent4f7d54f59bc470f0aaa932f747a95232d7ebf8b1
tcp: Kill extraneous SPLICE_F_NONBLOCK checks.

In splice TCP receive, the SPLICE_F_NONBLOCK flag is used
to compute the "timeo" value.  So checking it again inside
of the main receive loop to trigger -EAGAIN processing is
entirely unnecessary.

Noticed by Jarek P. and Lennert Buytenhek.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c