From: Andy Grover Date: Thu, 11 Mar 2010 13:49:57 +0000 (+0000) Subject: RDS: update copy_to_user state in tcp transport X-Git-Tag: firefly_0821_release~9833^2~2087^2~775 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b075cfdb666d6fa90c55c8619186398a3c4fd865;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Andy Grover Signed-off-by: David S. Miller --- 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, goto out; } + rds_stats_add(s_copy_to_user, to_copy); size -= to_copy; ret += to_copy; skb_off += to_copy;