From 7588b0a678d280e12552e352795624bcc69b139d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Mon, 2 Apr 2012 08:34:35 +0200 Subject: [PATCH] Kernel: Set max io size limit for all disk devices * Prior to this change, slice and partition devices did not inherit their parent maximum IO size limit * IO transactions on these devices could thus never be bigger than the old 64KB DFLTPHYS defaul kernel limit --- sys/kern/subr_disk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 1793dd4c67..acbc71b41e 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -238,6 +238,7 @@ disk_probe_slice(struct disk *dp, cdev_t dev, int slice, int reprobe) UID_ROOT, GID_OPERATOR, 0640, "%s%c", dev->si_name, 'a'+ i); ndev->si_parent = dev; + ndev->si_iosize_max = dev->si_iosize_max; ndev->si_disk = dp; udev_dict_set_cstr(ndev, "subsystem", "disk"); /* Inherit parent's disk type */ @@ -401,6 +402,7 @@ disk_probe(struct disk *dp, int reprobe) (info->d_dsflags & DSO_DEVICEMAPPER)? "%s.s%d" : "%ss%d", dev->si_name, sno); ndev->si_parent = dev; + ndev->si_iosize_max = dev->si_iosize_max; udev_dict_set_cstr(ndev, "subsystem", "disk"); /* Inherit parent's disk type */ if (dp->d_disktype) { -- 2.41.0