summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2009-01-11 17:40:00 +0000
committeroga <oga@openbsd.org>2009-01-11 17:40:00 +0000
commitf8aa71e10bbe25dd1565b27d75dc2673fde1a556 (patch)
tree1870dfa8d5bfd7f680216fd281c91a1e478a84c2
parentRegen (no functional change) (diff)
downloadwireguard-openbsd-f8aa71e10bbe25dd1565b27d75dc2673fde1a556.tar.xz
wireguard-openbsd-f8aa71e10bbe25dd1565b27d75dc2673fde1a556.zip
backout revision 1.109
"keep b_proc set to the process, thats doing the io as advertised" This broke dvd playing on my laptop (page fault trap in vmapbuf in the physio path). thib's cookie privileges are hereby suspended until further notice.
-rw-r--r--sys/kern/vfs_bio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index f5a4fa2d1a6..6892c6a560e 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.109 2009/01/09 20:28:10 thib Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.110 2009/01/11 17:40:00 oga Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*-
@@ -362,7 +362,6 @@ bio_doread(struct vnode *vp, daddr64_t blkno, int size, int async)
SET(bp->b_flags, B_READ | async);
bcstats.pendingreads++;
bcstats.numreads++;
- bp->b_proc = curproc;
VOP_STRATEGY(bp);
/* Pay for the read. */
curproc->p_stats->p_ru.ru_inblock++; /* XXX */
@@ -537,7 +536,6 @@ bread_cluster(struct vnode *vp, daddr64_t blkno, int size, struct buf **rbpp)
bp->b_vp = vp;
bcstats.pendingreads++;
bcstats.numreads++;
- bp->b_proc = curproc;
VOP_STRATEGY(bp);
curproc->p_stats->p_ru.ru_inblock++;
@@ -687,7 +685,6 @@ bdwrite(struct buf *bp)
void
bawrite(struct buf *bp)
{
- bp->b_proc = NULL;
SET(bp->b_flags, B_ASYNC);
VOP_BWRITE(bp);
@@ -1149,7 +1146,6 @@ void
biodone(struct buf *bp)
{
splassert(IPL_BIO);
- bp->b_proc = NULL;
if (ISSET(bp->b_flags, B_DONE))
panic("biodone already");