OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1080-g04950be

Gerrit Code Review gerrit@openafs.org
Tue, 19 Apr 2011 07:03:46 -0700 (PDT)


The following commit has been merged in the master branch:
commit 04950bec1b1d6c1eeb782fff82d7568af44e7443
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: Ica853976b1094be1087e49c22d878f8ae7fca03a
    Reviewed-on: http://gerrit.openafs.org/4498
    Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
    Tested-by: Jeffrey Altman <jaltman@openafs.org>

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

-- 
OpenAFS Master Repository