From e0a8247d1d09cdf0b9ba3dbb2fff09a2af150a70 Mon Sep 17 00:00:00 2001 From: sos Date: Sat, 2 Oct 1999 20:21:49 +0000 Subject: In some drivers we use two devices to be able to boot. So if si_iosize_max is allready set, dont mess with it.. Also just log the problem with maxphys not being set once. designed by: phk tested by: sos --- sys/kern/kern_physio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/kern/kern_physio.c') diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 6bf3e7f..95ffc92 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -178,6 +178,7 @@ minphys(bp) if(!maxphys) { printf("WARNING: %s maxphys = 0 ??", devtoname(bp->b_dev)); maxphys = DFLTPHYS; + bp->b_dev->si_iosize_max = DFLTPHYS; } if (bp->b_kvasize && (bp->b_kvasize < maxphys)) maxphys = bp->b_kvasize; -- cgit v1.1