diff options
-rw-r--r-- | drivers/scsi/hosts.c | 1 | ||||
-rw-r--r-- | include/scsi/scsi_host.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index dd9464920456..ef22b275d050 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c | |||
@@ -474,6 +474,7 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) | |||
474 | shost->dma_boundary = 0xffffffff; | 474 | shost->dma_boundary = 0xffffffff; |
475 | 475 | ||
476 | shost->use_blk_mq = scsi_use_blk_mq; | 476 | shost->use_blk_mq = scsi_use_blk_mq; |
477 | shost->use_blk_mq = scsi_use_blk_mq || shost->hostt->force_blk_mq; | ||
477 | 478 | ||
478 | device_initialize(&shost->shost_gendev); | 479 | device_initialize(&shost->shost_gendev); |
479 | dev_set_name(&shost->shost_gendev, "host%d", shost->host_no); | 480 | dev_set_name(&shost->shost_gendev, "host%d", shost->host_no); |
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index a8b7bf879ced..9c1e4bad6581 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -452,6 +452,9 @@ struct scsi_host_template { | |||
452 | /* True if the controller does not support WRITE SAME */ | 452 | /* True if the controller does not support WRITE SAME */ |
453 | unsigned no_write_same:1; | 453 | unsigned no_write_same:1; |
454 | 454 | ||
455 | /* True if the low-level driver supports blk-mq only */ | ||
456 | unsigned force_blk_mq:1; | ||
457 | |||
455 | /* | 458 | /* |
456 | * Countdown for host blocking with no commands outstanding. | 459 | * Countdown for host blocking with no commands outstanding. |
457 | */ | 460 | */ |