Skip to contentSkip to conversation

rfs: call sock_rps_record_flow() in tcp_splice_read()

PATCH Applied Changli Gao 2 participants 2 messages Jul 13, 2010 – Jul 14, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

----

 net/ipv4/tcp.c |    1 +
 1 file changed, 1 insertion(+)
net/ipv4/tcp.c +1 -0
index 9fce8a8..86b9f67 100644
@@ -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
 	 */
maintainer Applied
#1 lore raw

From: Changli Gao <[email protected]>
Date: Tue, 13 Jul 2010 15:00:12 +0800

Quoted 6 lines

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.

Applied, thanks.