If debug.mpsafenet is non-zero, run the NFS server callout without

Giant.
This commit is contained in:
rwatson 2004-07-24 02:32:27 +00:00
parent 726eec4c97
commit 42672df963

View File

@ -546,7 +546,10 @@ nfsrv_modevent(module_t mod, int type, void *data)
nfsrv_initcache(); /* Init the server request cache */
NFSD_LOCK();
nfsrv_init(0); /* Init server data structures */
callout_init(&nfsrv_callout, 0);
if (debug_mpsafenet)
callout_init(&nfsrv_callout, CALLOUT_MPSAFE);
else
callout_init(&nfsrv_callout, 0);
NFSD_UNLOCK();
nfsrv_timer(0);