diff options
author | Jeff Layton <[email protected]> | 2023-01-20 14:52:14 -0500 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2023-01-23 09:51:17 -0500 |
commit | 4bdbba54e9b1c769da8ded9abd209d765715e1d6 (patch) | |
tree | 5dc3af2ca14cef52d2d784375062ed04acc6d21d /include/linux/overflow.h | |
parent | 7c24fa225081f31bc6da6a355c1ba801889ab29a (diff) |
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: ac3a2585f018 ("nfsd: rework refcounting in filecache")
Reported-by: Ruben Vestergaard <[email protected]>
Reported-by: Torkil Svensgaard <[email protected]>
Reported-by: Shachar Kagan <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Tested-by: Shachar Kagan <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions