OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-3707-gaa0046a

Gerrit Code Review gerrit@openafs.org
Tue, 9 Apr 2013 10:39:38 -0700 (PDT)


The following commit has been merged in the master branch:
commit aa0046a7220d8b21f2694d7f9534d7383422731b
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date:   Tue Apr 9 10:35:52 2013 -0400

    Windows: CcPurge range modified by non-cached write
    
    When a non-cached non-paging write occurs, the update bypasses the
    Windows cache.  As a result any cached data in the modified range is
    now invalid and must be purged.
    
    CcPurgeCacheSection is known to trigger some filter drivers to open
    the file from a worker thread.  To avoid a deadlock on the
    Fcb->NPFcb->Resource that resource must be dropped.  Holding the
    SectionObjectResource exclusive is sufficient to protect against races
    with other writes, reads and SetEndOfFile operations.  While purging the
    cache prior to calling the service might be more desireable, it cannot be
    done safely without violating the lock hierarchy.  Therefore, the purge is
    performed after any call to the service completes.
    
    Change-Id: I953a74a0675875eb6be85f85ce924473deb3347f
    Reviewed-on: http://gerrit.openafs.org/9756
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
    Reviewed-by: Peter Scott <pscott@kerneldrivers.com>
    Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

 src/WINNT/afsrdr/kernel/lib/AFSWrite.cpp |   43 ++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

-- 
OpenAFS Master Repository