Back-out vmapbuf() change for now as locally it has been found to sleep
in some circumstances that don't sleep when not using pmap_prefer().
This commit is contained in:
parent
93a8d5ffea
commit
ca2a49c4cf
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.68 2000/07/24 20:16:29 jeffs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.69 2000/07/26 16:24:38 jeffs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -43,7 +43,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.68 2000/07/24 20:16:29 jeffs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.69 2000/07/26 16:24:38 jeffs Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -299,7 +299,7 @@ vmapbuf(bp, len)
|
|||
faddr = trunc_page((vaddr_t)bp->b_saveaddr = bp->b_data);
|
||||
off = (vaddr_t)bp->b_data - faddr;
|
||||
len = round_page(off + len);
|
||||
taddr = uvm_km_valloc_prefer_wait(phys_map, len, (vaddr_t)bp->b_data);
|
||||
taddr = uvm_km_valloc_wait(phys_map, len);
|
||||
bp->b_data = (caddr_t)(taddr + off);
|
||||
len = atop(len);
|
||||
while (len--) {
|
||||
|
|
Loading…
Reference in New Issue