aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/pseudofs
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2021-12-09 21:41:08 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2021-12-09 21:41:08 +0000
commit0f74021fb6a5c3fb6e031892cc159b1e7e325bd6 (patch)
tree5dce41417fc8f395d61ca29b43003ee8c1d069dc /sys/fs/pseudofs
parentae67737a4cdbf70bf0bdba5b6694b3ab78134ccb (diff)
downloadsrc-0f74021fb6a5c3fb6e031892cc159b1e7e325bd6.tar.gz
src-0f74021fb6a5c3fb6e031892cc159b1e7e325bd6.zip
pseudofs: Destroy vncache hashtbl on pseudofs module unload.
Reviewed by: mjg, kib Differential Revision: https://reviews.freebsd.org/D31605 MFC after: 2 weeks
Diffstat (limited to 'sys/fs/pseudofs')
-rw-r--r--sys/fs/pseudofs/pseudofs_vncache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c
index b0b10d525783..15892b510973 100644
--- a/sys/fs/pseudofs/pseudofs_vncache.c
+++ b/sys/fs/pseudofs/pseudofs_vncache.c
@@ -108,6 +108,7 @@ pfs_vncache_unload(void)
KASSERT(pfs_vncache_entries == 0,
("%d vncache entries remaining", pfs_vncache_entries));
mtx_destroy(&pfs_vncache_mutex);
+ hashdestroy(pfs_vncache_hashtbl, M_PFSVNCACHE, pfs_vncache_hash);
}
/*