aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-03-11 08:49:57 -0500
committerDavid S. Miller <davem@davemloft.net>2010-03-17 00:16:54 -0400
commitb075cfdb666d6fa90c55c8619186398a3c4fd865 (patch)
treea63ed941bccb9910978519350c1c14704706c58b /net/rds
parent1123fd734df6ad82373a5a27f0f2ed3115555b9d (diff)
RDS: update copy_to_user state in tcp transport
Other transports use rds_page_copy_user, which updates our s_copy_to_user counter. TCP doesn't, so it needs to explicity call rds_stats_add(). Reported-by: Richard Frank <richard.frank@oracle.com> Signed-off-by: Andy Grover <andy.grover@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/tcp_recv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/tcp_recv.c b/net/rds/tcp_recv.c
index c00dafffbb5a..40bfcf887465 100644
--- a/net/rds/tcp_recv.c
+++ b/net/rds/tcp_recv.c
@@ -97,6 +97,7 @@ int rds_tcp_inc_copy_to_user(struct rds_incoming *inc, struct iovec *first_iov,
97 goto out; 97 goto out;
98 } 98 }
99 99
100 rds_stats_add(s_copy_to_user, to_copy);
100 size -= to_copy; 101 size -= to_copy;
101 ret += to_copy; 102 ret += to_copy;
102 skb_off += to_copy; 103 skb_off += to_copy;