Skip to contentSkip to conversation

scsi: replace wrong device handler name for CLARiiON arrays

PATCH Applied Xose Vazquez Perez 5 participants 6 messages Oct 7, 2016 – Oct 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: replace wrong device handler name for CLARiiON arrays

At drivers/scsi/device_handler/scsi_dh_emc.c it was defined as:
#define CLARIION_NAME "emc"

Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc James E.J. Bottomley <[email protected]>
Cc Martin K. Petersen <[email protected]>
Cc SCSI ML <[email protected]>
Cc device-mapper development <[email protected]>
---
 drivers/scsi/scsi_dh.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/scsi_dh.c +3 -3
index 54d446c..b8d3b97 100644
@@ -36,9 +36,9 @@ struct scsi_dh_blist {
 };
 
 static const struct scsi_dh_blist scsi_dh_blist[] = {
-	{"DGC", "RAID",			"clariion" },
-	{"DGC", "DISK",			"clariion" },
-	{"DGC", "VRAID",		"clariion" },
+	{"DGC", "RAID",			"emc" },
+	{"DGC", "DISK",			"emc" },
+	{"DGC", "VRAID",		"emc" },
 
 	{"COMPAQ", "MSA1000 VOLUME",	"hp_sw" },
 	{"COMPAQ", "HSV110",		"hp_sw" },
Signature · 1 line
2.10.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Xose Vazquez Perez

At drivers/scsi/device_handler/scsi_dh_emc.c it was defined as:
#define CLARIION_NAME "emc"

Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc James E.J. Bottomley <[email protected]>
Cc Martin K. Petersen <[email protected]>
Cc SCSI ML <[email protected]>
Cc device-mapper development <[email protected]>
---
 drivers/scsi/scsi_dh.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/scsi_dh.c +0 -0
index 54d446c..b8d3b97 100644
@@ -36,9 +36,9 @@ struct scsi_dh_blist {
 };
 

drivers/scsi/scsi_dh.c struct scsi_dh_blist { · line 44

Quoted 10 lines
drivers/scsi/scsi_dh.c +3 -3
 static const struct scsi_dh_blist scsi_dh_blist[] = {
-	{"DGC", "RAID",			"clariion" },
-	{"DGC", "DISK",			"clariion" },
-	{"DGC", "VRAID",		"clariion" },
+	{"DGC", "RAID",			"emc" },
+	{"DGC", "DISK",			"emc" },
+	{"DGC", "VRAID",		"emc" },
 
 	{"COMPAQ", "MSA1000 VOLUME",	"hp_sw" },
 	{"COMPAQ", "HSV110",		"hp_sw" },

Whee. Of course.

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
#2 lore raw
Quoted 31 lines · Hannes Reinecke
Quoted 30 lines · Xose Vazquez Perez

At drivers/scsi/device_handler/scsi_dh_emc.c it was defined as:
#define CLARIION_NAME "emc"

Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc James E.J. Bottomley <[email protected]>
Cc Martin K. Petersen <[email protected]>
Cc SCSI ML <[email protected]>
Cc device-mapper development <[email protected]>
---
 drivers/scsi/scsi_dh.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/scsi_dh.c +3 -3
index 54d446c..b8d3b97 100644
@@ -36,9 +36,9 @@ struct scsi_dh_blist {
 };
 
 static const struct scsi_dh_blist scsi_dh_blist[] = {
-	{"DGC", "RAID",			"clariion" },
-	{"DGC", "DISK",			"clariion" },
-	{"DGC", "VRAID",		"clariion" },
+	{"DGC", "RAID",			"emc" },
+	{"DGC", "DISK",			"emc" },
+	{"DGC", "VRAID",		"emc" },
 
Quoted 6 lines

drivers/scsi/scsi_dh.c struct scsi_dh_blist { · line 44

Quoted 3 lines
drivers/scsi/scsi_dh.c +0 -0
 	{"COMPAQ", "MSA1000 VOLUME",	"hp_sw" },
 	{"COMPAQ", "HSV110",		"hp_sw" },

Whee. Of course.

Actually, should we replace? Aren't there older arrays still bearing the clariion name, so we should have these entries in addition?

James

#3 lore raw
Quoted 2 lines · James Bottomley

Actually, should we replace? Aren't there older arrays still bearing the clariion name, so we should have these entries in addition?

The changed string isn't the inquiry vendor string, but the DH driver name it is mapped to. And the driver for the clariion arrays is indeed emc, even if the inquity data shows DGC.

#4 lore raw
Quoted 8 lines · Christoph Hellwig
Quoted 3 lines · James Bottomley

Actually, should we replace? Aren't there older arrays still bearing
the clariion name, so we should have these entries in addition?

The changed string isn't the inquiry vendor string, but the DH driver name it is mapped to. And the driver for the clariion arrays is indeed emc, even if the inquity data shows DGC.

Ah, missed that, thanks!

Patch looks fine to me then.

James

#5 lore raw
In reply to Xose Vazquez Perez
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Xose" == Xose Vazquez Perez <[email protected]> writes:

Xose> At drivers/scsi/device_handler/scsi_dh_emc.c it was defined as:
Xose> #define CLARIION_NAME "emc"

Applied to 4.9/scsi-fixes.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering