OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-1894-g55f5f35

Gerrit Code Review gerrit@openafs.org
Wed, 16 Nov 2011 07:04:39 -0800 (PST)


The following commit has been merged in the master branch:
commit 55f5f356af2ef884413bd656f100055741ae871b
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date:   Tue Nov 15 18:23:46 2011 -0500

    Windows: create scache->redirMx to reduce contention
    
    Relying on the cm_scache_t.rw lock to protect the cm_scache_t.redirQueue*
    results in a large amount of contention between processing extent
    requests and releases from the afs redirector and the threads attempting
    to read from or write data to the file server.   There is no reason why
    the same lock must be used.  Allocate a dedicated mutex to protect the
    queue.
    
    By placing the new mutex after the buf_globalLock in the locking
    hierarchy it permits the lock acquisition logic for extent processing
    to be simplified further reducing cm_scache_t.rw lock transitions.
    
    Change-Id: Id2ded86c1f3757a2f1071c8cf39f2fbc6bcfcfaa
    Reviewed-on: http://gerrit.openafs.org/6053
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
    Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>

 src/WINNT/afsd/cm.h                 |    1 +
 src/WINNT/afsd/cm_buf.c             |   17 +++++++----
 src/WINNT/afsd/cm_memmap.h          |    2 +-
 src/WINNT/afsd/cm_scache.c          |    4 ++
 src/WINNT/afsd/cm_scache.h          |    3 +-
 src/WINNT/afsrdr/user/RDRFunction.c |   56 ++---------------------------------
 6 files changed, 22 insertions(+), 61 deletions(-)

-- 
OpenAFS Master Repository