]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix net-namespace logic in __nfsd_file_cache_purge
authorJeff Layton <jlayton@kernel.org>
Mon, 31 Oct 2022 15:49:21 +0000 (11:49 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 1 Nov 2022 21:27:27 +0000 (17:27 -0400)
commitcc001981ed6f6c1ddcfdadac662b5ebb8df542cd
treee44556f926ebaddc20991c7e291653fd2698b0b4
parentdbe0d078e3ef21f4a23705f862f857a9cd703427
nfsd: fix net-namespace logic in __nfsd_file_cache_purge

If the namespace doesn't match the one in "net", then we'll continue,
but that doesn't cause another rhashtable_walk_next call, so it will
loop infinitely.

Fixes: 4f149782b6d8 ("NFSD: Convert the filecache to use rhashtable")
Reported-by: Petr Vorel <pvorel@suse.cz>
Link: https://lore.kernel.org/ltp/Y1%2FP8gDAcWC%2F+VR3@pevik/
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c