Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2021 21:41:40 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0f74021fb6a5 - main - pseudofs: Destroy vncache hashtbl on pseudofs module unload.
Message-ID:  <202112092141.1B9LfedV069788@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112092141.1B9LfedV069788>