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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"