OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2408-ga3ff628
Gerrit Code Review
Mon, 16 Apr 2012 08:59:27 -0700 (PDT)
The following commit has been merged in the master branch:
Author: Simon Wilkinson <email@example.com>
Date: Fri Apr 13 19:14:44 2012 +0100
rx: Remove surplus call to FindPeer
When stats are enabled, rxi_ReadPacket calls FindPeer immediately
the packet is received from the wire. The peer structure that it
gets is used solely to increment a counter, and then thrown away.
Given that FindPeer requires a lock, and a hash lookup, this is
Instead, delay the compilation of statistics until rxi_ReceivePacket.
Call FindPeer for version and debug packets which have no associated
connection otherwise wait until we have found the packet's connection,
and use the peer which is linked from there.
Reviewed-by: Simon Wilkinson <firstname.lastname@example.org>
Tested-by: BuildBot <email@example.com>
Reviewed-by: Jeffrey Altman <firstname.lastname@example.org>
src/rx/rx.c | 27 +++++++++++++++++++++++++++
src/rx/rx_packet.c | 30 ++++--------------------------
2 files changed, 31 insertions(+), 26 deletions(-)
OpenAFS Master Repository