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:
parent
6b4ac811ca
commit
4a490e4c21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1313
@ -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()
|
||||
{
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user