scsi: kill off the legacy IO path
This removes the legacy (non-mq) IO path for SCSI. Cc: linux-scsi@vger.kernel.org Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Tested-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Omar Sandoval <osandov@fb.com> Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -23,19 +23,15 @@ static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,
|
||||
int tag)
|
||||
{
|
||||
struct request *req = NULL;
|
||||
u16 hwq;
|
||||
|
||||
if (tag == SCSI_NO_TAG)
|
||||
return NULL;
|
||||
|
||||
if (shost_use_blk_mq(shost)) {
|
||||
u16 hwq = blk_mq_unique_tag_to_hwq(tag);
|
||||
|
||||
if (hwq < shost->tag_set.nr_hw_queues) {
|
||||
req = blk_mq_tag_to_rq(shost->tag_set.tags[hwq],
|
||||
blk_mq_unique_tag_to_tag(tag));
|
||||
}
|
||||
} else {
|
||||
req = blk_map_queue_find_tag(shost->bqt, tag);
|
||||
hwq = blk_mq_unique_tag_to_hwq(tag);
|
||||
if (hwq < shost->tag_set.nr_hw_queues) {
|
||||
req = blk_mq_tag_to_rq(shost->tag_set.tags[hwq],
|
||||
blk_mq_unique_tag_to_tag(tag));
|
||||
}
|
||||
|
||||
if (!req)
|
||||
|
Reference in New Issue
Block a user