mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 15:36:55 +08:00
Merge tag 'nfsd-6.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fix from Chuck Lever: - Fix a loop that occurs when using multiple net namespaces * tag 'nfsd-6.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: nfsd: fix net-namespace logic in __nfsd_file_cache_purge
This commit is contained in:
@@ -893,9 +893,8 @@ __nfsd_file_cache_purge(struct net *net)
|
||||
|
||||
nf = rhashtable_walk_next(&iter);
|
||||
while (!IS_ERR_OR_NULL(nf)) {
|
||||
if (net && nf->nf_net != net)
|
||||
continue;
|
||||
nfsd_file_unhash_and_dispose(nf, &dispose);
|
||||
if (!net || nf->nf_net == net)
|
||||
nfsd_file_unhash_and_dispose(nf, &dispose);
|
||||
nf = rhashtable_walk_next(&iter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user