• NeilBrown's avatar
    sunrpc: don't keep expired entries in the auth caches. · 3af4974e
    NeilBrown authored
    currently expired entries remain in the auth caches as long
    as there is a reference.
    This was needed long ago when the auth_domain cache used the same
    cache infrastructure.  But since that (being a very different sort
    of cache) was separated, this test is no longer needed.
    
    So remove the test on refcnt and tidy up the surrounding code.
    
    This allows the cache_dequeue call (which needed to be there to
    drop a potentially awkward reference) can be moved outside of the
    spinlock which is a better place for it.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
    3af4974e
cache.c 39 KB