• N
    sunrpc/cache: make sure deferred requests eventually get revisited. · 5c4d2639
    NeilBrown 提交于
    While deferred requests normally get revisited quite quickly,
    it is possible for a request to remain in the deferral queue
    when the cache item is discarded.  We can easily make sure that
    doesn't happen by calling cache_revisit_request just before
    the final 'put'.
    
    Also there is a small chance that a race would cause one thread to
    defer a request against a cache item while another thread is failing
    to queue an upcall for that item.  So when the upcall fails, make
    sure to revisit all deferred requests.
    Signed-off-by: NNeilBrown <neilb@suse.de>
    Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
    5c4d2639
cache.c 30.7 KB