[PATCH] megaraid_sas: Enable shared host tag map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <hare@xxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux