summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_physio.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1999-10-02 20:21:49 +0000
committersos <sos@FreeBSD.org>1999-10-02 20:21:49 +0000
commite0a8247d1d09cdf0b9ba3dbb2fff09a2af150a70 (patch)
treecb61f283dd55dffb030c569f6c8fec7ca9fbea6f /sys/kern/kern_physio.c
parent784f8a85633f91547b04e7c8be6dad00fd212db2 (diff)
downloadFreeBSD-src-e0a8247d1d09cdf0b9ba3dbb2fff09a2af150a70.zip
FreeBSD-src-e0a8247d1d09cdf0b9ba3dbb2fff09a2af150a70.tar.gz
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
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r--sys/kern/kern_physio.c1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud