OpenAFS Master Repository branch, openafs-stable-1_4_x, updated. openafs-stable-1_4_12-124-gab552c7

Gerrit Code Review gerrit@openafs.org
Fri, 12 Aug 2011 19:56:49 -0700 (PDT)


The following commit has been merged in the openafs-stable-1_4_x branch:
commit ab552c78919dc78e75b6018f0d75e43540ce4756
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Fri Jul 22 16:09:52 2011 -0500

    libafs: Avoid duplicate afs_Analyze in bulk stat
    
    In afs_DoBulkStat, we can call afs_Analyze multiple times for the same
    set of connection objects. Since afs_Analyze puts its reference to the
    given afs_conn and rx_connection structures, calling it more than once
    can cause the reference counts on those objects to be lower than they
    should be.
    
    Instead of making another afs_Analyze call, just alter the error code
    inside the normal do/while afs_Analyze loop, so the 'loop' afs_Analyze
    call gets the appropriate error code from the first bulk stat'd entry.
    
    Reviewed-on: http://gerrit.openafs.org/5086
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>
    (cherry picked from commit ef28bc08c18e750f6100535665d5258a317a0a2b)
    
    Change-Id: Id367ea7e8d3735d1b88475ad771bd23e3d013df2
    Reviewed-on: http://gerrit.openafs.org/5236
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>

 src/afs/VNOPS/afs_vnop_lookup.c |   21 ++++++---------------
 1 files changed, 6 insertions(+), 15 deletions(-)

-- 
OpenAFS Master Repository