* [PATCH]: [scsi_dh] Do not use scsilun in rdac hardware handler
@ 2008-08-13 0:26 Chandra Seetharaman
0 siblings, 0 replies; only message in thread
From: Chandra Seetharaman @ 2008-08-13 0:26 UTC (permalink / raw)
To: Linus Torvalds, James Bottomley; +Cc: linux-scsi, Hannes Reinecke, Yanqing_Liu
RDAC storage controller doesn't seem to use the scsilun format. It uses
only the last byte for LUN.
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
---
drivers/scsi/device_handler/scsi_dh_rdac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.27-rc1/drivers/scsi/device_handler/scsi_dh_rdac.c
===================================================================
--- linux-2.6.27-rc1.orig/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ linux-2.6.27-rc1/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -376,7 +376,7 @@ static int get_lun(struct scsi_device *s
if (inqp->page_id[0] != 'e' || inqp->page_id[1] != 'd' ||
inqp->page_id[2] != 'i' || inqp->page_id[3] != 'd')
return SCSI_DH_NOSYS;
- h->lun = scsilun_to_int((struct scsi_lun *)inqp->lun);
+ h->lun = inqp->lun[7]; /* Uses only the last byte */
}
return err;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-13 0:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-13 0:26 [PATCH]: [scsi_dh] Do not use scsilun in rdac hardware handler Chandra Seetharaman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox