Skip to content
Commit 4bdbba54 authored by Jeff Layton's avatar Jeff Layton Committed by Chuck Lever
Browse files

nfsd: don't free files unconditionally in __nfsd_file_cache_purge

nfsd_file_cache_purge is called when the server is shutting down, in
which case, tearing things down is generally fine, but it also gets
called when the exports cache is flushed.

Instead of walking the cache and freeing everything unconditionally,
handle it the same as when we have a notification of conflicting access.

Fixes: ac3a2585

 ("nfsd: rework refcounting in filecache")
Reported-by: default avatarRuben Vestergaard <rubenv@drcmr.dk>
Reported-by: default avatarTorkil Svensgaard <torkil@drcmr.dk>
Reported-by: default avatarShachar Kagan <skagan@nvidia.com>
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Tested-by: default avatarShachar Kagan <skagan@nvidia.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 7c24fa22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment