sunrpc: Fix potential leaks in sunrpc_cache_unhash()

[ Upstream commit 1d82163714 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Trond Myklebust 2020-01-06 13:40:34 -05:00 • committed by Greg Kroah-Hartman
commit 6affad9ade