]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[SCSI] fix regression that accidentally disabled block-based tcq
authorChristoph Hellwig <hch@infradead.org>
Fri, 12 Sep 2014 23:00:32 +0000 (16:00 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 19 Sep 2014 12:23:32 +0000 (13:23 +0100)
The scsi blk-mq support accidentally flipped a conditional, which lead to
never enabling block based tcq when using the legacy request path.

Fixes: d285203cf647d7c9 scsi: add support for a blk-mq based I/O path.
Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
include/scsi/scsi_tcq.h

index cdcc90b07ecba7ec8bb675bdb1e1b26498f77a24..e64583560701bb1f2f0038717457321597b39e85 100644 (file)
@@ -68,7 +68,7 @@ static inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)
                return;
 
        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,
                                    sdev->host->bqt);