diff options
author | Christoph Hellwig <hch@lst.de> | 2015-10-08 10:28:04 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-11-10 02:11:57 +0100 |
commit | 64d513ac31bd02a3c9b69ef04444f36c196f9a9d (patch) | |
tree | 240e1bb8a92f76b53a5cc3c00e528851a488ebf8 /drivers/scsi/hosts.c | |
parent | bnx2fc: reduce stack usage in __bnx2fc_enable (diff) | |
download | linux-64d513ac31bd02a3c9b69ef04444f36c196f9a9d.tar.xz linux-64d513ac31bd02a3c9b69ef04444f36c196f9a9d.zip |
scsi: use host wide tags by default
This patch changes the !blk-mq path to the same defaults as the blk-mq
I/O path by always enabling block tagging, and always using host wide
tags. We've had blk-mq available for a few releases so bugs with
this mode should have been ironed out, and this ensures we get better
coverage of over tagging setup over different configs.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r-- | drivers/scsi/hosts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 8bb173e01084..323982fd00c3 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -217,6 +217,13 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, error = scsi_mq_setup_tags(shost); if (error) goto fail; + } else { + shost->bqt = blk_init_tags(shost->can_queue, + shost->hostt->tag_alloc_policy); + if (!shost->bqt) { + error = -ENOMEM; + goto fail; + } } /* |