summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-11-09 16:46:53 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-11-09 16:46:53 +0000
commitaca218e970d7fb6ca9aa21cda40c9518393ee7f9 (patch)
treee1b5f7e0267b8181d52b80c71e77cd6bea0857d1 /sys/kern
parent855b2de09a6233fe9aaefa49b068e66e5f779397 (diff)
Use PHOLD/PRELE instead of manually fiddling with p_holdcnt.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_physio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index 2086bab06a8..6aa0b547718 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_physio.c,v 1.8 2000/03/16 22:11:04 art Exp $ */
+/* $OpenBSD: kern_physio.c,v 1.9 2000/11/09 16:46:52 art Exp $ */
/* $NetBSD: kern_physio.c,v 1.28 1997/05/19 10:43:28 pk Exp $ */
/*-
@@ -182,7 +182,7 @@ physio(strategy, bp, dev, flags, minphys, uio)
* saves it in b_saveaddr. However, vunmapbuf()
* restores it.
*/
- p->p_holdcnt++;
+ PHOLD(p);
#if defined(UVM)
uvm_vslock(p, bp->b_data, todo, (flags & B_READ) ?
VM_PROT_READ | VM_PROT_WRITE : VM_PROT_READ);
@@ -224,7 +224,7 @@ physio(strategy, bp, dev, flags, minphys, uio)
#else
vsunlock(bp->b_data, todo);
#endif
- p->p_holdcnt--;
+ PRELE(p);
/* remember error value (save a splbio/splx pair) */
if (bp->b_flags & B_ERROR)