Commit 4102db1
nfsd: don't destroy global nfs4_file table in per-net shutdown
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 <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent 4bdbba5 commit 4102db1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8182 | 8182 | | |
8183 | 8183 | | |
8184 | 8184 | | |
8185 | | - | |
8186 | 8185 | | |
8187 | 8186 | | |
8188 | 8187 | | |
| |||
8192 | 8191 | | |
8193 | 8192 | | |
8194 | 8193 | | |
| 8194 | + | |
8195 | 8195 | | |
8196 | 8196 | | |
8197 | 8197 | | |
| |||
0 commit comments