mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
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:
parent
f5645ccffe
commit
5fd85f53f2
@ -7090,6 +7090,9 @@ rx_IncrementTimeAndCount(struct rx_peer *peer, afs_uint32 rxInterface,
|
|||||||
int isServer)
|
int isServer)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!(rxi_monitor_peerStats || rxi_monitor_processStats))
|
||||||
|
return;
|
||||||
|
|
||||||
MUTEX_ENTER(&rx_rpc_stats);
|
MUTEX_ENTER(&rx_rpc_stats);
|
||||||
MUTEX_ENTER(&peer->peer_lock);
|
MUTEX_ENTER(&peer->peer_lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user