OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2110-gafeb3c3

Gerrit Code Review gerrit@openafs.org
Thu, 19 Jan 2012 15:39:51 -0800 (PST)


The following commit has been merged in the master branch:
commit afeb3c3a83ed0869e4a70b0725e3f85713330c3a
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.
    
    Change-Id: I3870cccd5cd5e95134446523cce3547a2135d5e3
    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>

 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