diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-01-11 17:40:01 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-01-11 17:40:01 +0000 |
commit | 5e1c994afb882b4f20685da186237cf8985335c2 (patch) | |
tree | ad62571916a06a9d210c23a844d02cc8df4bb579 /sys/kern/vfs_bio.c | |
parent | 11d09fd849d88dacb10ec3828ad5104a1e3bf726 (diff) |
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.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 6 |
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"); |