When we unhash the cache entry, we need to handle any pending upcalls
by calling cache_fresh_unlocked().
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
        if (!hlist_unhashed(&h->cache_list)){
                hlist_del_init_rcu(&h->cache_list);
                cd->entries--;
+               set_bit(CACHE_CLEANED, &h->flags);
                spin_unlock(&cd->hash_lock);
+               cache_fresh_unlocked(h, cd);
                cache_put(h, cd);
        } else
                spin_unlock(&cd->hash_lock);