Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b075cfdb authored by Andy Grover's avatar Andy Grover Committed by David S. Miller
Browse files

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: default avatarRichard Frank <richard.frank@oracle.com>
Signed-off-by: default avatarAndy Grover <andy.grover@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1123fd73
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -97,6 +97,7 @@ int rds_tcp_inc_copy_to_user(struct rds_incoming *inc, struct iovec *first_iov,
				goto out;
				goto out;
			}
			}


			rds_stats_add(s_copy_to_user, to_copy);
			size -= to_copy;
			size -= to_copy;
			ret += to_copy;
			ret += to_copy;
			skb_off += to_copy;
			skb_off += to_copy;