OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2229-g317b227

Gerrit Code Review
Tue, 13 Mar 2012 16:36:03 -0700 (PDT)

The following commit has been merged in the master branch:
commit 6fb1078e08d4077fb0602f97b1a83bcd72f55db8
Author: Jeffrey Altman <>
Date:   Wed Mar 7 06:54:54 2012 -0800

    Windows: Wait for memory allocation if necessary
    The kernel has a limited pool of memory.  If there is no memory
    available to satisfy a request, that request will fail initially
    with a STATUS_OUT_OF_RESOURCES error which in most cases is exposed
    to the user-mode application as STATUS_ACCESS_DENIED.  This can
    produce inconsistent results.
    This patchset introduces an Event object, MemoryAvailableEvent,
    which is signalled when the redirector deallocates memory.  This
    should in many cases permit requests to succeed where they otherwise
    would have failed immediately.
    The WaitingForMemoryCount field tracks the number of threads that
    are waiting for memory to become available.  A subsequent patch
    could use this value to accelerate the tear down of cached data.
    To avoid deadlocks, blocking threads will only wait for a maximum
    of 30 seconds at a time.  As long as the redirector continues to
    free memory, the thread can re-queue itself.  However, if a timeout
    occurs, the allocation request will fail.
    Change-Id: I0aa549be3852b31b68d7b42ecab4ca982c75f6ba
    Tested-by: Jeffrey Altman <>
    Reviewed-by: Jeffrey Altman <>

 src/WINNT/afsrdr/common/AFSRedirCommonStructs.h |    8 ++
 src/WINNT/afsrdr/kernel/fs/AFSGeneric.cpp       |  111 +++++++++++++++++++----
 2 files changed, 101 insertions(+), 18 deletions(-)

OpenAFS Master Repository