summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-11-14 08:08:49 +0000
committermav <mav@FreeBSD.org>2009-11-14 08:08:49 +0000
commitc95dd39afed1544a1738813cee60ea11188f65b5 (patch)
tree6a7753f1017c48a56b909276420dfbde1c4fba1b /sys/cam
parentbebd0c59a6d226026e22fa75faa480d00b7ed478 (diff)
downloadFreeBSD-src-c95dd39afed1544a1738813cee60ea11188f65b5.zip
FreeBSD-src-c95dd39afed1544a1738813cee60ea11188f65b5.tar.gz
MFp4:
Do not enable tagged queueing if controller reports 0 tags support.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ata/ata_xpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/ata/ata_xpt.c b/sys/cam/ata/ata_xpt.c
index 6485d26..24a64fe 100644
--- a/sys/cam/ata/ata_xpt.c
+++ b/sys/cam/ata/ata_xpt.c
@@ -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);
OpenPOWER on IntegriCloud