aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-07-12 21:00:12 +0000
committerDavid S. Miller <davem@davemloft.net>2010-07-14 14:45:15 -0700
commit3a047bf87b1b6f69c62ab9fb28072c639cb7e2fa (patch)
treeb134b9942d2b378b1afd81b07ffdfb948cd1439e /net
parentd809ec895505e6f35fb1965f0946381ab4eaa474 (diff)
downloadkernel_samsung_espresso10-3a047bf87b1b6f69c62ab9fb28072c639cb7e2fa.zip
kernel_samsung_espresso10-3a047bf87b1b6f69c62ab9fb28072c639cb7e2fa.tar.gz
kernel_samsung_espresso10-3a047bf87b1b6f69c62ab9fb28072c639cb7e2fa.tar.bz2
rfs: call sock_rps_record_flow() in tcp_splice_read()
rfs: call sock_rps_record_flow() in tcp_splice_read() call sock_rps_record_flow() in tcp_splice_read(), so the applications using splice(2) or sendfile(2) can utilize RFS. Signed-off-by: Changli Gao <xiaosuo@gmail.com> ---- net/ipv4/tcp.c | 1 + 1 file changed, 1 insertion(+) Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 6596b4f..65afeae 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -608,6 +608,7 @@ ssize_t tcp_splice_read(struct socket *sock, loff_t *ppos,
ssize_t spliced;
int ret;
+ sock_rps_record_flow(sk);
/*
* We can't seek on a socket input
*/