summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_srvcache.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-04-28 09:28:14 +0000
committerart <art@openbsd.org>1999-04-28 09:28:14 +0000
commita197ef3200bd75939df756dd231d991195efe33a (patch)
tree8abb82e98574d5b895e1f487af9fff1308c2c156 /sys/nfs/nfs_srvcache.c
parentMerge with EOM 1.5 (diff)
downloadwireguard-openbsd-a197ef3200bd75939df756dd231d991195efe33a.tar.xz
wireguard-openbsd-a197ef3200bd75939df756dd231d991195efe33a.zip
zap the newhashinit hack.
Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
Diffstat (limited to 'sys/nfs/nfs_srvcache.c')
-rw-r--r--sys/nfs/nfs_srvcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_srvcache.c b/sys/nfs/nfs_srvcache.c
index fb6004cdfe2..a167ae4f300 100644
--- a/sys/nfs/nfs_srvcache.c
+++ b/sys/nfs/nfs_srvcache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_srvcache.c,v 1.5 1996/04/21 22:30:28 deraadt Exp $ */
+/* $OpenBSD: nfs_srvcache.c,v 1.6 1999/04/28 09:28:17 art Exp $ */
/* $NetBSD: nfs_srvcache.c,v 1.12 1996/02/18 11:53:49 fvdl Exp $ */
/*
@@ -144,7 +144,7 @@ void
nfsrv_initcache()
{
- nfsrvhashtbl = hashinit(desirednfsrvcache, M_NFSD, &nfsrvhash);
+ nfsrvhashtbl = hashinit(desirednfsrvcache, M_NFSD, M_WAITOK, &nfsrvhash);
TAILQ_INIT(&nfsrvlruhead);
}