Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102199074
D38750.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
935 B
Referenced Files
None
Subscribers
None
D38750.diff
View Options
diff --git a/sys/fs/nfs/nfs_commonport.c b/sys/fs/nfs/nfs_commonport.c
--- a/sys/fs/nfs/nfs_commonport.c
+++ b/sys/fs/nfs/nfs_commonport.c
@@ -885,7 +885,7 @@
mtx_init(&NFSD_VNET(nfsrv_nfsuserdsock).nr_mtx, "nfsuserd",
NULL, MTX_DEF);
}
-VNET_SYSINIT(nfs_vnetinit, SI_SUB_VNET_DONE, SI_ORDER_ANY,
+VNET_SYSINIT(nfs_vnetinit, SI_SUB_VNET_DONE, SI_ORDER_FIRST,
nfs_vnetinit, NULL);
static void
@@ -893,12 +893,14 @@
{
mtx_destroy(&NFSD_VNET(nfsrv_nfsuserdsock).nr_mtx);
- if (!IS_DEFAULT_VNET(curvnet))
+ if (!IS_DEFAULT_VNET(curvnet)) {
free(NFSD_VNET(nfsstatsv1_p), M_TEMP);
+ NFSD_VNET(nfsstatsv1_p) = NULL;
+ }
/* Clean out the name<-->id cache. */
nfsrv_cleanusergroup();
}
-VNET_SYSUNINIT(nfs_cleanup, SI_SUB_VNET_DONE, SI_ORDER_ANY,
+VNET_SYSUNINIT(nfs_cleanup, SI_SUB_VNET_DONE, SI_ORDER_FIRST,
nfs_cleanup, NULL);
extern int (*nfsd_call_nfscommon)(struct thread *, struct nfssvc_args *);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 8:47 PM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14565567
Default Alt Text
D38750.diff (935 B)
Attached To
Mode
D38750: fix ordering of VNET_SYSUNINIT()s within the nfsd module
Attached
Detach File
Event Timeline
Log In to Comment