rx-stats-optimization-20080218

LICENSE IPL10

Do not grab the peer mutex or the rpc stats mutex if we are not
intending to collect stats.  Doing so is a bottleneck.
This commit is contained in:
Jeffrey Altman 2008-02-18 17:27:48 +00:00
parent f5645ccffe
commit 5fd85f53f2

View File

@ -7090,6 +7090,9 @@ rx_IncrementTimeAndCount(struct rx_peer *peer, afs_uint32 rxInterface,
int isServer)
{
if (!(rxi_monitor_peerStats || rxi_monitor_processStats))
return;
MUTEX_ENTER(&rx_rpc_stats);
MUTEX_ENTER(&peer->peer_lock);