Eliminated the "physstrat" wart and merged it into kern_physio.c. This

patch also fixes a bug which causes a kernel VM leak.
This commit is contained in:
David Greenman 1994-03-30 02:31:11 +00:00
parent 6b4ac811ca
commit 4a490e4c21
2 changed files with 2 additions and 42 deletions

View File

@ -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()
{

View File

@ -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()
{