OpenAFS Master Repository branch, openafs-devel-1_7_x, updated. openafs-devel-1_7_1-188-gd84937a

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


The following commit has been merged in the openafs-devel-1_7_x branch:
commit d84937a30952c544ebfc3aef28797407807830aa
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.
    
    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>
    (cherry picked from commit 55f5f356af2ef884413bd656f100055741ae871b)
    
    Change-Id: Ic52bb0063e764c67f22783b4de2fdfaad90d374a
    Reviewed-on: http://gerrit.openafs.org/6063
    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