summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-12-19 05:59:21 +0000
committertedu <tedu@openbsd.org>2014-12-19 05:59:21 +0000
commitfbab5b6cdee93fd0818b09c6201db020bd35a0fd (patch)
tree39a72a7aa63cbcbc57b980b1f4d8b345ffcbc99b /sys/kern/sys_pipe.c
parentif you really must look inside the pool to decide if you've called (diff)
downloadwireguard-openbsd-fbab5b6cdee93fd0818b09c6201db020bd35a0fd.tar.xz
wireguard-openbsd-fbab5b6cdee93fd0818b09c6201db020bd35a0fd.zip
start retiring the nointr allocator. specify PR_WAITOK as a flag as a
marker for which pools are not interrupt safe. ok dlg
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 0fff90220e8..0f505c2cb2d 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_pipe.c,v 1.67 2014/09/28 18:52:04 kettenis Exp $ */
+/* $OpenBSD: sys_pipe.c,v 1.68 2014/12/19 05:59:21 tedu Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@@ -876,7 +876,7 @@ filt_pipewrite(struct knote *kn, long hint)
void
pipe_init(void)
{
- pool_init(&pipe_pool, sizeof(struct pipe), 0, 0, 0, "pipepl",
- &pool_allocator_nointr);
+ pool_init(&pipe_pool, sizeof(struct pipe), 0, 0, PR_WAITOK, "pipepl",
+ NULL);
}