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
This commit is contained in:
parent
784f8a8563
commit
e0a8247d1d
@ -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;
|
||||
|
@ -116,7 +116,8 @@ diskopen(dev_t dev, int oflags, int devtype, struct proc *p)
|
||||
return (ENXIO);
|
||||
|
||||
if (!dsisopen(dp->d_slice)) {
|
||||
pdev->si_iosize_max = dev->si_iosize_max;
|
||||
if (!pdev->si_iosize_max)
|
||||
pdev->si_iosize_max = dev->si_iosize_max;
|
||||
error = dp->d_devsw->d_open(pdev, oflags, devtype, p);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user