diff options
author | 2007-05-28 22:18:48 +0000 | |
---|---|---|
committer | 2007-05-28 22:18:48 +0000 | |
commit | 09b8bc5ca490be4ee55f28d7cb761833c57f8ad1 (patch) | |
tree | 98737cbc6f1f926ff1894672e1eab0f607b72989 | |
parent | avoid bypassing sys/queue.h in many places in the kernel. (diff) | |
download | wireguard-openbsd-09b8bc5ca490be4ee55f28d7cb761833c57f8ad1.tar.xz wireguard-openbsd-09b8bc5ca490be4ee55f28d7cb761833c57f8ad1.zip |
pool_setipl() on the bufpool, to make sure that
every get/put is at IPL_BIO.
ok pedro@
-rw-r--r-- | sys/kern/vfs_bio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 535138f5c5a..ce7ca9740c5 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.89 2007/05/27 01:25:56 pedro Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.90 2007/05/28 22:18:48 thib Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -332,6 +332,7 @@ bufinit(void) struct bqueues *dp; pool_init(&bufpool, sizeof(struct buf), 0, 0, 0, "bufpl", NULL); + pool_setipl(&bufpool, IPL_BIO); for (dp = bufqueues; dp < &bufqueues[BQUEUES]; dp++) TAILQ_INIT(dp); minaddr = vm_map_min(kernel_map); |