diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2004-07-24 02:32:27 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2004-07-24 02:32:27 +0000 |
commit | 9e0219d901287cf30d17694cc8850df4d73beb1f (patch) | |
tree | d3c582eeb4031f0d12c926694b4aee82bd60d932 /sys/nfsserver | |
parent | b0c90b3b8c5aa6ff242923686ca9d4d5f509472c (diff) | |
download | src-9e0219d901287cf30d17694cc8850df4d73beb1f.tar.gz src-9e0219d901287cf30d17694cc8850df4d73beb1f.zip |
If debug.mpsafenet is non-zero, run the NFS server callout without
Giant.
Notes
Notes:
svn path=/head/; revision=132591
Diffstat (limited to 'sys/nfsserver')
-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 77ba6e623709..55c9f20107d6 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); |