Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2022 19:38:36 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 00a4cd973c0b - stable/13 - pseudofs: Destroy vncache hashtbl on pseudofs module unload.
Message-ID:  <202206171938.25HJcaSQ014900@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=00a4cd973c0bec5300a46f9132eec9d55176c525

commit 00a4cd973c0bec5300a46f9132eec9d55176c525
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-12-09 21:41:08 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-17 19:33:41 +0000

    pseudofs: Destroy vncache hashtbl on pseudofs module unload.
    
    Reviewed by:            mjg, kib
    Differential Revision:  https://reviews.freebsd.org/D31605
    MFC after:              2 weeks
    
    (cherry picked from commit 0f74021fb6a5c3fb6e031892cc159b1e7e325bd6)
---
 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?202206171938.25HJcaSQ014900>