svn commit: r199451 - stable/8/sys/cam/ata

Alexander Motin mav at FreeBSD.org
Tue Nov 17 21:26:06 UTC 2009


Author: mav
Date: Tue Nov 17 21:26:05 2009
New Revision: 199451
URL: http://svn.freebsd.org/changeset/base/199451

Log:
  MFC r199263:
  Do not enable tagged queueing if controller reports 0 tags support.

Modified:
  stable/8/sys/cam/ata/ata_xpt.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/cam/ata/ata_xpt.c
==============================================================================
--- stable/8/sys/cam/ata/ata_xpt.c	Tue Nov 17 21:23:05 2009	(r199450)
+++ stable/8/sys/cam/ata/ata_xpt.c	Tue Nov 17 21:26:05 2009	(r199451)
@@ -719,7 +719,8 @@ noerror:
 		/* XXX: If not all tags allowed, we must to tell SIM which are. */
 		if (path->device->mintags < path->bus->sim->max_tagged_dev_openings)
 			path->device->mintags = path->device->maxtags = 0;
-		if (path->device->mintags != 0) {
+		if (path->device->mintags != 0 &&
+		    path->bus->sim->max_tagged_dev_openings != 0) {
 			xpt_start_tags(path);
 		}
 		ata_device_transport(path);


More information about the svn-src-stable mailing list