summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.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/subr_disk.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/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 9c53bde..79d38f2 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -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);
}
OpenPOWER on IntegriCloud