svn commit: r199263 - head/sys/cam/ata

Alexander Motin mav at FreeBSD.org
Sat Nov 14 08:08:49 UTC 2009


Author: mav
Date: Sat Nov 14 08:08:49 2009
New Revision: 199263
URL: http://svn.freebsd.org/changeset/base/199263

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

Modified:
  head/sys/cam/ata/ata_xpt.c

Modified: head/sys/cam/ata/ata_xpt.c
==============================================================================
--- head/sys/cam/ata/ata_xpt.c	Sat Nov 14 08:04:38 2009	(r199262)
+++ head/sys/cam/ata/ata_xpt.c	Sat Nov 14 08:08:49 2009	(r199263)
@@ -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-head mailing list