summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-12-23 01:55:03 +0000
committertedu <tedu@openbsd.org>2014-12-23 01:55:03 +0000
commit53a296e09dacbc7758a52db8a91c865c1d49d0cd (patch)
treefe59d8c54adb66f7db5683e80963d2d7c387ccf0
parentchange pool allocator to null and pass waitok to indicate nointr (diff)
downloadwireguard-openbsd-53a296e09dacbc7758a52db8a91c865c1d49d0cd.tar.xz
wireguard-openbsd-53a296e09dacbc7758a52db8a91c865c1d49d0cd.zip
change req pool alloc to null. add prwaitok here and nfs_node_pool which
is also sleeping in all callers, but already used null
-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);