summaryrefslogtreecommitdiff
path: root/sys/kern/kern_physio.c
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2010-06-23 14:18:33 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2010-06-23 14:18:33 +0000
commit1ad290572f7b9ca84464758c8d637e887eec92d2 (patch)
tree437a820729824a29a39921e9497d86db272a5e67 /sys/kern/kern_physio.c
parented9b2860e61aef6f24c699b6bd4ca652ca326426 (diff)
No need to do the splbio/splx dance around the pool_get in
getphysbuf() as the bufpool is already protected. From Matthew Dempsky <matthew at dempsky dot org> OK blambert@
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r--sys/kern/kern_physio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index 022e4aeac84..0dae0225874 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_physio.c,v 1.29 2009/06/04 21:27:14 oga Exp $ */
+/* $OpenBSD: kern_physio.c,v 1.30 2010/06/23 14:18:32 thib Exp $ */
/* $NetBSD: kern_physio.c,v 1.28 1997/05/19 10:43:28 pk Exp $ */
/*-
@@ -262,12 +262,8 @@ struct buf *
getphysbuf(void)
{
struct buf *bp;
- int s;
- s = splbio();
bp = pool_get(&bufpool, PR_WAITOK | PR_ZERO);
- splx(s);
-
bp->b_vnbufs.le_next = NOLIST;
return (bp);