The megaraid SAS driver uses a shared host tag map internally,
so we should be telling the block layer about it.

Signed-off-by: Hannes Reinecke <[email protected]>
---
 drivers/scsi/megaraid/megaraid_sas_base.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c 
b/drivers/scsi/megaraid/megaraid_sas_base.c
index f05580e..7fb83d0 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -2757,6 +2757,7 @@ static struct scsi_host_template megasas_template = {
        .use_clustering = ENABLE_CLUSTERING,
        .change_queue_depth = scsi_change_queue_depth,
        .no_write_same = 1,
+       .use_blk_tags = 1,
 };
 
 /**
@@ -4996,6 +4997,11 @@ static int megasas_io_attach(struct megasas_instance 
*instance)
                host->hostt->eh_bus_reset_handler = NULL;
        }
 
+       if (scsi_init_shared_tag_map(host, host->can_queue)) {
+               printk(KERN_INFO "megasas: failed to init shared tag map\n");
+               return -ENODEV;
+       }
+
        /*
         * Notify the mid-layer about the new controller
         */
-- 
1.8.5.2

--
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