Browse Source

scsi: fix regression that accidentally disabled block-based tcq

Please try the fix below, looks like the commit broke TCQ for all drivers
using block-level tagging.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Christoph Hellwig 11 years ago
parent
commit
4b8c6ba616
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/scsi/scsi_tcq.h

+ 1 - 1
include/scsi/scsi_tcq.h

@@ -68,7 +68,7 @@ static inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)
 		return;
 		return;
 
 
 	if (!shost_use_blk_mq(sdev->host) &&
 	if (!shost_use_blk_mq(sdev->host) &&
-	    blk_queue_tagged(sdev->request_queue))
+	    !blk_queue_tagged(sdev->request_queue))
 		blk_queue_init_tags(sdev->request_queue, depth,
 		blk_queue_init_tags(sdev->request_queue, depth,
 				    sdev->host->bqt);
 				    sdev->host->bqt);