]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98649ef1c0496bcd1bf38a36480e6fe7a4cb329d
tree470b71a2c1a36a0d0e04f000c483a901f3c914db
parent86b154c076c371eeb4882489f7cdca85b93d6c91
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