diff options
author | 2010-06-23 14:18:32 +0000 | |
---|---|---|
committer | 2010-06-23 14:18:32 +0000 | |
commit | 7290b9565e02112a918d27a01c59c1b2004a5128 (patch) | |
tree | 9f36efe6e6b1a3f40b41d6ce8d9c6b7dd6832c44 | |
parent | remove leftovers from old compaction code (diff) | |
download | wireguard-openbsd-7290b9565e02112a918d27a01c59c1b2004a5128.tar.xz wireguard-openbsd-7290b9565e02112a918d27a01c59c1b2004a5128.zip |
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@
-rw-r--r-- | sys/kern/kern_physio.c | 6 |
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); |