]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] stex: fix queue depth setting
authorMike Christie <michaelc@cs.wisc.edu>
Sat, 12 Jul 2008 00:50:34 +0000 (19:50 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 26 Jul 2008 19:14:49 +0000 (15:14 -0400)
We want to set the queue depth to something reasonable - not
the can_queue.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: Ed Lin <ed.lin@promise.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/stex.c

index f308a030882916aed13c1805ef9213758e1313eb..3790906a77d10c06705b3616a22c5650d50f1948 100644 (file)
@@ -467,7 +467,7 @@ stex_slave_alloc(struct scsi_device *sdev)
        /* Cheat: usually extracted from Inquiry data */
        sdev->tagged_supported = 1;
 
-       scsi_activate_tcq(sdev, sdev->host->can_queue);
+       scsi_activate_tcq(sdev, ST_CMD_PER_LUN);
 
        return 0;
 }