diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-24 02:32:27 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-24 02:32:27 +0000 |
commit | 42672df9638bae3e548ee576e5b5e67dba208dc4 (patch) | |
tree | d3c582eeb4031f0d12c926694b4aee82bd60d932 /sys | |
parent | 726eec4c97db583e1cc41e665877e230c3669604 (diff) | |
download | FreeBSD-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.c | 5 |
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); |