diff options
author | 2014-12-19 05:59:21 +0000 | |
---|---|---|
committer | 2014-12-19 05:59:21 +0000 | |
commit | fbab5b6cdee93fd0818b09c6201db020bd35a0fd (patch) | |
tree | 39a72a7aa63cbcbc57b980b1f4d8b345ffcbc99b /sys/kern/vfs_subr.c | |
parent | if you really must look inside the pool to decide if you've called (diff) | |
download | wireguard-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/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 225e0a89c8e..0f9fd976928 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.226 2014/12/17 19:42:15 tedu Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.227 2014/12/19 05:59:21 tedu Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -143,10 +143,10 @@ vntblinit(void) { /* buffer cache may need a vnode for each buffer */ maxvnodes = 2 * desiredvnodes; - pool_init(&vnode_pool, sizeof(struct vnode), 0, 0, 0, "vnodes", - &pool_allocator_nointr); - pool_init(&uvm_vnode_pool, sizeof(struct uvm_vnode), 0, 0, 0, "uvmvnodes", - &pool_allocator_nointr); + pool_init(&vnode_pool, sizeof(struct vnode), 0, 0, PR_WAITOK, + "vnodes", NULL); + pool_init(&uvm_vnode_pool, sizeof(struct uvm_vnode), 0, 0, PR_WAITOK, + "uvmvnodes", NULL); TAILQ_INIT(&vnode_hold_list); TAILQ_INIT(&vnode_free_list); TAILQ_INIT(&mountlist); |