diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-11-13 17:45:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-11-13 17:45:45 +0000 |
commit | f4859de4dceeea58cdb19c822e282ee3bdb1cbdc (patch) | |
tree | 83357b7620847d837928fb01c1b05dcb4fa37fe9 /sys/kern/vfs_bio.c | |
parent | 395254d45f5ae563d9c0c2b4ad492c03f7ffc390 (diff) |
backout 1.86
it is totally wrong to convert bdwrite into bawrite on the fly. this just
causes way bigger issues.
ok beck blambert
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index b3b4304341f..a285a3e6dd0 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.126 2010/08/03 06:30:19 deraadt Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.127 2010/11/13 17:45:44 deraadt Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /* @@ -672,20 +672,10 @@ bdwrite(struct buf *bp) */ if (!ISSET(bp->b_flags, B_DELWRI)) { SET(bp->b_flags, B_DELWRI); - bp->b_synctime = time_uptime + 35; s = splbio(); reassignbuf(bp); splx(s); curproc->p_stats->p_ru.ru_oublock++; /* XXX */ - } else { - /* - * see if this buffer has slacked through the syncer - * and enforce an async write upon it. - */ - if (bp->b_synctime < time_uptime) { - bawrite(bp); - return; - } } /* If this is a tape block, write the block now. */ @@ -727,7 +717,6 @@ buf_dirty(struct buf *bp) if (ISSET(bp->b_flags, B_DELWRI) == 0) { SET(bp->b_flags, B_DELWRI); - bp->b_synctime = time_uptime + 35; reassignbuf(bp); } } |