@@ -2274,6 +2274,8 @@ int scsi_mq_setup_tags(struct Scsi_Host *shost)
shost->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_SG_MERGE;
shost->tag_set.flags |=
BLK_ALLOC_POLICY_TO_MQ_FLAG(shost->hostt->tag_alloc_policy);
+ if (shost->hostt->host_tagset)
+ shost->tag_set.flags |= BLK_MQ_F_GLOBAL_TAGS;
shost->tag_set.driver_data = shost;
return blk_mq_alloc_tag_set(&shost->tag_set);
@@ -457,6 +457,9 @@ struct scsi_host_template {
*/
unsigned int max_host_blocked;
+ /* True if the host supports a host-wide tagspace */
+ unsigned host_tagset:1;
+
/*
* Default value for the blocking. If the queue is empty,
* host_blocked counts down in the request_fn until it restarts