OpenAFS Master Repository branch, openafs-devel-1_7_x, updated. openafs-devel-1_7_9-38-g20bb041

Gerrit Code Review gerrit@openafs.org
Mon, 16 Apr 2012 10:28:24 -0700 (PDT)


The following commit has been merged in the openafs-devel-1_7_x branch:
commit 20bb041d194459bc5f55db52ffa75ec184cea696
Author: Simon Wilkinson <sxw@your-file-system.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
    really inefficent.
    
    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-on: http://gerrit.openafs.org/7206
    Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
    (cherry picked from commit a3ff62857cb76e403c11a27a250aa3c79d66ebb6)
    
    Change-Id: I1344dac9d2391b6254bba7c1ded8f344010538a5
    Reviewed-on: http://gerrit.openafs.org/7222
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>

 src/rx/rx.c        |   27 +++++++++++++++++++++++++++
 src/rx/rx_packet.c |   30 ++++--------------------------
 2 files changed, 31 insertions(+), 26 deletions(-)

-- 
OpenAFS Master Repository