SUNRPC/cache: Allow garbage collection of invalid cache entries
authorTrond Myklebust <trondmy@gmail.com>
Sun, 1 Mar 2020 23:21:43 +0000 (18:21 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Mar 2020 16:04:34 +0000 (12:04 -0400)
commit277f27e2f27752cd1a7901443d72e908ddea8a2e
tree470b71a2c1a36a0d0e04f000c483a901f3c914db
parent65286b883c6de6b30928c837c47c167e82bde0b2
SUNRPC/cache: Allow garbage collection of invalid cache entries

If the cache entry never gets initialised, we want the garbage
collector to be able to evict it. Otherwise if the upcall daemon
fails to initialise the entry, we end up never expiring it.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
[ cel: resolved a merge conflict ]
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/cache.h
net/sunrpc/cache.c