OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_0pre4-8-g3cbd777

Gerrit Code Review gerrit@openafs.org
Fri, 22 Apr 2011 15:35:13 -0700 (PDT)


The following commit has been merged in the openafs-stable-1_6_x branch:
commit 314bc2e0082edea04ffb6908e2479be904b21b8e
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date:   Tue Apr 19 00:12:49 2011 -0400

    Windows: avoid race when writing mountPointString
    
    cm_GetData() drops the cm_scache_t rw lock which permits other
    threads to access the data while it is in an inconsistent state.
    Avoid the race by using a stack allocated temporary buffer to
    receive the data from cm_GetData().  Only copy the data into
    the mountPointStringp buffer under the rwlock.
    
    Change-Id: Id5ab3c5ed7c76551d53fedea96eeded59c2c699d
    Reviewed-on: http://gerrit.openafs.org/4498
    Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
    Tested-by: Jeffrey Altman <jaltman@openafs.org>
    Reviewed-on: http://gerrit.openafs.org/4522
    Tested-by: BuildBot <buildbot@rampaginggeek.com>

 src/WINNT/afsd/cm_vnodeops.c |   33 ++++++++++++++++++++++++---------
 1 files changed, 24 insertions(+), 9 deletions(-)

-- 
OpenAFS Master Repository