summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-07-24 02:32:27 +0000
committerrwatson <rwatson@FreeBSD.org>2004-07-24 02:32:27 +0000
commit42672df9638bae3e548ee576e5b5e67dba208dc4 (patch)
treed3c582eeb4031f0d12c926694b4aee82bd60d932 /sys
parent726eec4c97db583e1cc41e665877e230c3669604 (diff)
downloadFreeBSD-src-42672df9638bae3e548ee576e5b5e67dba208dc4.zip
FreeBSD-src-42672df9638bae3e548ee576e5b5e67dba208dc4.tar.gz
If debug.mpsafenet is non-zero, run the NFS server callout without
Giant.
Diffstat (limited to 'sys')
-rw-r--r--sys/nfsserver/nfs_srvsubs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c
index 77ba6e6..55c9f201 100644
--- a/sys/nfsserver/nfs_srvsubs.c
+++ b/sys/nfsserver/nfs_srvsubs.c
@@ -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);
OpenPOWER on IntegriCloud