Commit 73674ab
Herton R. Krzesinski
Merge: nfsd: don't destroy global nfs4_file table in per-net shutdown
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2058
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2169017
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: d47b295 ("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: Jeffrey Layton <jlayton@redhat.com>
Approved-by: Scott Mayhew <smayhew@redhat.com>
Approved-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7760 | 7760 | | |
7761 | 7761 | | |
7762 | 7762 | | |
7763 | | - | |
7764 | 7763 | | |
7765 | 7764 | | |
7766 | 7765 | | |
| |||
7770 | 7769 | | |
7771 | 7770 | | |
7772 | 7771 | | |
| 7772 | + | |
7773 | 7773 | | |
7774 | 7774 | | |
7775 | 7775 | | |
| |||
0 commit comments