svn commit: r209977 - head/sys/dev/ata
Alexander Motin
mav at FreeBSD.org
Tue Jul 13 06:42:47 UTC 2010
Author: mav
Date: Tue Jul 13 06:42:47 2010
New Revision: 209977
URL: http://svn.freebsd.org/changeset/base/209977
Log:
Disable multi-sector PIO transfers if ATA_SET_MULTI command failed.
Submitted by: Mikolaj Golub on fs@
Modified:
head/sys/dev/ata/ata-disk.c
Modified: head/sys/dev/ata/ata-disk.c
==============================================================================
--- head/sys/dev/ata/ata-disk.c Tue Jul 13 05:43:43 2010 (r209976)
+++ head/sys/dev/ata/ata-disk.c Tue Jul 13 06:42:47 2010 (r209977)
@@ -406,6 +406,8 @@ ad_init(device_t dev)
if (!ata_controlcmd(dev, ATA_SET_MULTI, 0, 0, secsperint))
atadev->max_iosize = secsperint * DEV_BSIZE;
+ else
+ atadev->max_iosize = DEV_BSIZE;
}
else
atadev->max_iosize = DEV_BSIZE;
More information about the svn-src-head
mailing list