Add a function to resize the tagspace for a scsi host.

Signed-off-by: Hannes Reinecke <[email protected]>
---
 drivers/scsi/scsi_lib.c  | 6 ++++++
 include/scsi/scsi_host.h | 1 +
 2 files changed, 7 insertions(+)

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index e8fea8e..56c2724 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -2133,6 +2133,12 @@ void scsi_mq_destroy_tags(struct Scsi_Host *shost)
        blk_mq_free_tag_set(&shost->tag_set);
 }
 
+int scsi_mq_resize_tags(struct Scsi_Host *shost, int max_tags)
+{
+       return blk_mq_resize_tag_set(&shost->tag_set, max_tags);
+}
+EXPORT_SYMBOL_GPL(scsi_mq_resize_tags);
+
 /*
  * Function:    scsi_block_requests()
  *
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index 2af2397..7cdfbd7 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -826,6 +826,7 @@ static inline int scsi_host_scan_allowed(struct Scsi_Host 
*shost)
 
 extern void scsi_unblock_requests(struct Scsi_Host *);
 extern void scsi_block_requests(struct Scsi_Host *);
+extern int scsi_mq_resize_tags(struct Scsi_Host *, int);
 
 struct class_container;
 
-- 
1.8.5.6

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to