pseudofs: Destroy vncache hashtbl on pseudofs module unload.

Reviewed by:		mjg, kib
Differential Revision:	https://reviews.freebsd.org/D31605
MFC after:		2 weeks
This commit is contained in:
Dmitry Chagin 2021-12-09 21:41:08 +00:00
parent ae67737a4c
commit 0f74021fb6

View File

@ -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);
}
/*