[SCSI] zfcp: Report FCP LUN to SCSI midlayer
When reporting SCSI devices to the SCSI midlayer, use the FCP LUN as LUN reported to the SCSI layer. With this approach, zfcp does not have to create unique LUNS, and this code can be removed. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
c7f6b3a399
commit
462b7859a0
@@ -1204,7 +1204,7 @@ static void scsi_sequential_lun_scan(struct scsi_target *starget,
|
||||
* Given a struct scsi_lun of: 0a 04 0b 03 00 00 00 00, this function returns
|
||||
* the integer: 0x0b030a04
|
||||
**/
|
||||
static int scsilun_to_int(struct scsi_lun *scsilun)
|
||||
int scsilun_to_int(struct scsi_lun *scsilun)
|
||||
{
|
||||
int i;
|
||||
unsigned int lun;
|
||||
@@ -1215,6 +1215,7 @@ static int scsilun_to_int(struct scsi_lun *scsilun)
|
||||
scsilun->scsi_lun[i + 1]) << (i * 8));
|
||||
return lun;
|
||||
}
|
||||
EXPORT_SYMBOL(scsilun_to_int);
|
||||
|
||||
/**
|
||||
* int_to_scsilun: reverts an int into a scsi_lun
|
||||
|
Reference in New Issue
Block a user