svn commit: r210206 - stable/8/sys/dev/ata

Alexander Motin mav at FreeBSD.org
Sun Jul 18 07:15:37 UTC 2010


Author: mav
Date: Sun Jul 18 07:15:37 2010
New Revision: 210206
URL: http://svn.freebsd.org/changeset/base/210206

Log:
  MFC r209977:
  Disable multi-sector PIO transfers if ATA_SET_MULTI command failed.

Modified:
  stable/8/sys/dev/ata/ata-disk.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/ata/ata-disk.c
==============================================================================
--- stable/8/sys/dev/ata/ata-disk.c	Sun Jul 18 07:13:55 2010	(r210205)
+++ stable/8/sys/dev/ata/ata-disk.c	Sun Jul 18 07:15:37 2010	(r210206)
@@ -405,6 +405,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-stable-8 mailing list