git: 0f74021fb6a5 - main - pseudofs: Destroy vncache hashtbl on pseudofs module unload.

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Thu, 09 Dec 2021 21:41:40 UTC
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=0f74021fb6a5c3fb6e031892cc159b1e7e325bd6

commit 0f74021fb6a5c3fb6e031892cc159b1e7e325bd6
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-12-09 21:41:08 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2021-12-09 21:41:08 +0000

    pseudofs: Destroy vncache hashtbl on pseudofs module unload.
    
    Reviewed by:            mjg, kib
    Differential Revision:  https://reviews.freebsd.org/D31605
    MFC after:              2 weeks
---
 sys/fs/pseudofs/pseudofs_vncache.c | 1 +
 1 file changed, 1 insertion(+)

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