Jeff Layton 56587affe2 nfsd: don't destroy global nfs4_file table in per-net shutdown
[ Upstream commit 4102db175b5d884d133270fdbd0e59111ce688fc ]

The nfs4_file table is global, so shutting it down when a containerized
nfsd is shut down is wrong and can lead to double-frees. Tear down the
nfs4_file_rhltable in nfs4_state_shutdown instead of
nfs4_state_shutdown_net.

Fixes: d47b295e8d76 ("NFSD: Use rhashtable for managing nfs4_file objects")
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2169017
Reported-by: JianHong Yin <jiyin@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-06 14:45:17 +00:00
..
2024-03-06 14:45:15 +00:00
2021-12-03 18:44:06 +01:00
2024-03-06 14:45:15 +00:00
2021-10-02 15:51:10 -04:00
2022-09-26 14:02:47 -04:00
2024-03-06 14:45:15 +00:00
2022-10-06 17:13:18 -07:00
2024-03-06 14:45:17 +00:00
2022-09-26 14:02:47 -04:00
2021-12-13 13:42:51 -05:00
2024-03-06 14:45:17 +00:00
2024-03-06 14:45:15 +00:00
2024-03-06 14:45:15 +00:00