• Neil Brown's avatar
    [PATCH] Make sure sunrpc/cache doesn't confuse writers with readers. · 6ed499a9
    Neil Brown authored
    When a sunrpc/cache channel is not open for reading, the
    cache doesn't bother making and waiting for up-calls.
    
    However it doesn't currently distingish between open-for-read/write
    and open-for-write, so an op-for-write will look like a reader
    and will cause inappropriate waiting.
    
    This patch checks if a file is open-for-read and will only register
    a file as a reader if it really is one.
    6ed499a9
cache.c 27.2 KB