From 4a490e4c2113864aba2306f8a331ecaa5b8f1a63 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Wed, 30 Mar 1994 02:31:11 +0000 Subject: [PATCH] Eliminated the "physstrat" wart and merged it into kern_physio.c. This patch also fixes a bug which causes a kernel VM leak. --- sys/amd64/amd64/machdep.c | 22 +--------------------- sys/i386/i386/machdep.c | 22 +--------------------- 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 4e12ed4005f..a5224b59a10 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.39 1994/03/19 23:58:58 wollman Exp $ + * $Id: machdep.c,v 1.40 1994/03/23 09:15:03 davidg Exp $ */ #include "npx.h" @@ -807,26 +807,6 @@ microtime(tvp) } #endif /* HZ */ -void -physstrat(bp, strat, prio) - struct buf *bp; - int (*strat)(), prio; -{ - register int s; - caddr_t baddr; - - vmapbuf(bp); - (*strat)(bp); - /* pageout daemon doesn't wait for pushed pages */ - if (bp->b_flags & B_DIRTY) - return; - s = splbio(); - while ((bp->b_flags & B_DONE) == 0) - tsleep((caddr_t)bp, prio, "physstr", 0); - splx(s); - vunmapbuf(bp); -} - static void initcpu() { diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 4e12ed4005f..a5224b59a10 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.39 1994/03/19 23:58:58 wollman Exp $ + * $Id: machdep.c,v 1.40 1994/03/23 09:15:03 davidg Exp $ */ #include "npx.h" @@ -807,26 +807,6 @@ microtime(tvp) } #endif /* HZ */ -void -physstrat(bp, strat, prio) - struct buf *bp; - int (*strat)(), prio; -{ - register int s; - caddr_t baddr; - - vmapbuf(bp); - (*strat)(bp); - /* pageout daemon doesn't wait for pushed pages */ - if (bp->b_flags & B_DIRTY) - return; - s = splbio(); - while ((bp->b_flags & B_DONE) == 0) - tsleep((caddr_t)bp, prio, "physstr", 0); - splx(s); - vunmapbuf(bp); -} - static void initcpu() {