diff options
author | Christoph Hellwig <hch@lst.de> | 2014-11-03 08:09:02 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:19:43 -0500 |
commit | 2ecb204d07ac8debe3893c362415919bc78bebd6 (patch) | |
tree | eef99b324201b21de358dffdab8bfc0453358d5f /drivers/scsi/pmcraid.c | |
parent | e2eddf4d530df745019fded0fedfb78f6d3e33ca (diff) |
scsi: always assign block layer tags if enabled
Allow a driver to ask for block layer tags by setting .use_blk_tags in the
host template, in which case it will always see a valid value in
request->tag, similar to the behavior when using blk-mq. This means even
SCSI "untagged" commands will now have a tag, which is especially useful
when using a host-wide tag map.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r-- | drivers/scsi/pmcraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index d5fb31fa388b..71f9f59b13c6 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
@@ -251,7 +251,6 @@ static int pmcraid_slave_configure(struct scsi_device *scsi_dev) | |||
251 | 251 | ||
252 | if (scsi_dev->tagged_supported && | 252 | if (scsi_dev->tagged_supported && |
253 | (RES_IS_GSCSI(res->cfg_entry) || RES_IS_VSET(res->cfg_entry))) { | 253 | (RES_IS_GSCSI(res->cfg_entry) || RES_IS_VSET(res->cfg_entry))) { |
254 | scsi_activate_tcq(scsi_dev, scsi_dev->queue_depth); | ||
255 | scsi_adjust_queue_depth(scsi_dev, MSG_SIMPLE_TAG, | 254 | scsi_adjust_queue_depth(scsi_dev, MSG_SIMPLE_TAG, |
256 | scsi_dev->host->cmd_per_lun); | 255 | scsi_dev->host->cmd_per_lun); |
257 | } else { | 256 | } else { |
@@ -4295,7 +4294,8 @@ static struct scsi_host_template pmcraid_host_template = { | |||
4295 | .cmd_per_lun = PMCRAID_MAX_CMD_PER_LUN, | 4294 | .cmd_per_lun = PMCRAID_MAX_CMD_PER_LUN, |
4296 | .use_clustering = ENABLE_CLUSTERING, | 4295 | .use_clustering = ENABLE_CLUSTERING, |
4297 | .shost_attrs = pmcraid_host_attrs, | 4296 | .shost_attrs = pmcraid_host_attrs, |
4298 | .proc_name = PMCRAID_DRIVER_NAME | 4297 | .proc_name = PMCRAID_DRIVER_NAME, |
4298 | .use_blk_tags = 1, | ||
4299 | }; | 4299 | }; |
4300 | 4300 | ||
4301 | /* | 4301 | /* |