]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsd: Add VNET_SYSUNINIT() macros for vnet cleanup
authorRick Macklem <rmacklem@FreeBSD.org>
Mon, 20 Feb 2023 21:11:22 +0000 (13:11 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 20 Feb 2023 21:11:22 +0000 (13:11 -0800)
commitef6fcc5e2b0714c859d2e4ba23a55b1fd12f8a4e
tree3e188b70e957af731b0bf41a8a9664bc72cefb51
parentcd73914b01a1f2300e587f802383cc563f2e7103
nfsd: Add VNET_SYSUNINIT() macros for vnet cleanup

Commit ed03776ca7f4 enabled the vnet front end macros.
As such, for kernels built with the VIMAGE option will malloc
data and initialize locks on a per-vnet basis, typically
via a VNET_SYSINIT().

This patch adds VNET_SYSUNINIT() macros to do the frees
of the per-vnet malloc'd data and destroys of per-vnet
locks.  It also removes the mtx_lock/mtx_unlock calls
from nfsrvd_cleancache(), since they are not needed.

Discussed with: bz, jamie
MFC after: 3 months
sys/fs/nfs/nfs_commonport.c
sys/fs/nfsserver/nfs_nfsdcache.c
sys/fs/nfsserver/nfs_nfsdport.c
sys/rpc/rpcsec_gss/svc_rpcsec_gss.c
sys/rpc/rpcsec_tls.h
sys/rpc/rpcsec_tls/rpctls_impl.c