summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_subs.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-12-23 01:55:04 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-12-23 01:55:04 +0000
commitbf8b0dbb63ee61719e5344bb420a2165b9ebf2f1 (patch)
treefdcf6e99f2a8c094adec2331f70f9f98326dd444 /sys/nfs/nfs_subs.c
parent5ce61b609d41389433432593a49011c54426ed0d (diff)
change req pool alloc to null. add prwaitok here and nfs_node_pool which
is also sleeping in all callers, but already used null
Diffstat (limited to 'sys/nfs/nfs_subs.c')
-rw-r--r--sys/nfs/nfs_subs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index bd60a8f85be..0354a64e635 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_subs.c,v 1.121 2014/12/18 21:00:12 tedu Exp $ */
+/* $OpenBSD: nfs_subs.c,v 1.122 2014/12/23 01:55:03 tedu Exp $ */
/* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */
/*
@@ -897,8 +897,8 @@ nfs_init(void)
nfsrv_initcache(); /* Init the server request cache */
#endif /* NFSSERVER */
- pool_init(&nfsreqpl, sizeof(struct nfsreq), 0, 0, 0, "nfsreqpl",
- &pool_allocator_nointr);
+ pool_init(&nfsreqpl, sizeof(struct nfsreq), 0, 0, PR_WAITOK,
+ "nfsreqpl", NULL);
}
#ifdef NFSCLIENT
@@ -909,7 +909,7 @@ nfs_vfs_init(struct vfsconf *vfsp)
TAILQ_INIT(&nfs_bufq);
- pool_init(&nfs_node_pool, sizeof(struct nfsnode), 0, 0, 0,
+ pool_init(&nfs_node_pool, sizeof(struct nfsnode), 0, 0, PR_WAITOK,
"nfsnodepl", NULL);
return (0);