Skip to content

Commit

Permalink
[SCSI] fix regression that accidentally disabled block-based tcq
Browse files Browse the repository at this point in the history
The scsi blk-mq support accidentally flipped a conditional, which lead to
never enabling block based tcq when using the legacy request path.

Fixes: d285203 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>
  • Loading branch information
Christoph Hellwig authored and James Bottomley committed Sep 19, 2014
1 parent db9bfd6 commit e8be1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/scsi/scsi_tcq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e8be1cf

Please sign in to comment.