OpenAFS Master Repository branch, openafs-devel-1_7_x, updated. openafs-devel-1_7_4-66-g95e505f

Gerrit Code Review gerrit@openafs.org
Thu, 19 Jan 2012 23:03:45 -0800 (PST)


The following commit has been merged in the openafs-devel-1_7_x branch:
commit 9205c25456179dd93654a2f8585c11f377b356e4
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date:   Tue Jan 17 19:43:54 2012 -0500

    Windows: prevent race assigning Fcb in AFSInitFcb()
    
    AFSInitFcb() is executed when the ObjectInformation->Fcb pointer
    is NULL.  More than one thread can make that determination at the
    same time.  Use InterlockedCompareExchangePointer() to detect
    a race and permit cleanup to be performed.
    
    Remove the output parameter of AFSInitFcb() to avoid a double
    assignment.
    
    Reviewed-on: http://gerrit.openafs.org/6562
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
    Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
    (cherry picked from commit afeb3c3a83ed0869e4a70b0725e3f85713330c3a)
    
    Change-Id: I7d580c128ab5c5cbe65cdfdbf69d84fe414f16c6
    Reviewed-on: http://gerrit.openafs.org/6587
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>

 src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp       |   94 +++++++++++++++++------
 src/WINNT/afsrdr/kernel/lib/AFSFcbSupport.cpp   |   60 +++++++++------
 src/WINNT/afsrdr/kernel/lib/Include/AFSCommon.h |    3 +-
 3 files changed, 107 insertions(+), 50 deletions(-)

-- 
OpenAFS Master Repository