summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-05-28 22:18:49 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-05-28 22:18:49 +0000
commit78d6cc695c9628eaa74832cf73a821bef2badc24 (patch)
treee95b418fdc0f1486903270eab2f81628d99d3087
parenta13a7e762ef3dc8ab0824ee1ffac2c9aac6ef5ec (diff)
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.c3
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);