diff options
author | Jamie Wellnitz <Jamie.Wellnitz@emulex.com> | 2006-02-28 19:25:24 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-02-28 19:58:02 -0500 |
commit | 7f0b5b1913ba20ae035adbaeca176e78a53fa7a8 (patch) | |
tree | 9919be31d3cf0cef742536aec9cf885883848184 /drivers/scsi/lpfc/lpfc_scsi.c | |
parent | c9f8735beadfba403045c4423c91bbcf594b6ef2 (diff) |
[SCSI] lpfc 8.1.2: Correct use of the hostdata field in scsi_host
Correct use of the hostdata field in scsi_host
Signed-off-by: Jamie Wellnitz <Jamie.Wellnitz@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index dafabeefc5b3..fd7540ea4e19 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -743,7 +743,7 @@ lpfc_scsi_tgt_reset(struct lpfc_scsi_buf * lpfc_cmd, struct lpfc_hba * phba) | |||
743 | const char * | 743 | const char * |
744 | lpfc_info(struct Scsi_Host *host) | 744 | lpfc_info(struct Scsi_Host *host) |
745 | { | 745 | { |
746 | struct lpfc_hba *phba = (struct lpfc_hba *) host->hostdata[0]; | 746 | struct lpfc_hba *phba = (struct lpfc_hba *) host->hostdata; |
747 | int len; | 747 | int len; |
748 | static char lpfcinfobuf[384]; | 748 | static char lpfcinfobuf[384]; |
749 | 749 | ||
@@ -803,7 +803,7 @@ static int | |||
803 | lpfc_queuecommand(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) | 803 | lpfc_queuecommand(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) |
804 | { | 804 | { |
805 | struct lpfc_hba *phba = | 805 | struct lpfc_hba *phba = |
806 | (struct lpfc_hba *) cmnd->device->host->hostdata[0]; | 806 | (struct lpfc_hba *) cmnd->device->host->hostdata; |
807 | struct lpfc_sli *psli = &phba->sli; | 807 | struct lpfc_sli *psli = &phba->sli; |
808 | struct lpfc_rport_data *rdata = cmnd->device->hostdata; | 808 | struct lpfc_rport_data *rdata = cmnd->device->hostdata; |
809 | struct lpfc_nodelist *ndlp = rdata->pnode; | 809 | struct lpfc_nodelist *ndlp = rdata->pnode; |
@@ -877,7 +877,7 @@ static int | |||
877 | lpfc_abort_handler(struct scsi_cmnd *cmnd) | 877 | lpfc_abort_handler(struct scsi_cmnd *cmnd) |
878 | { | 878 | { |
879 | struct Scsi_Host *shost = cmnd->device->host; | 879 | struct Scsi_Host *shost = cmnd->device->host; |
880 | struct lpfc_hba *phba = (struct lpfc_hba *)shost->hostdata[0]; | 880 | struct lpfc_hba *phba = (struct lpfc_hba *)shost->hostdata; |
881 | struct lpfc_sli_ring *pring = &phba->sli.ring[phba->sli.fcp_ring]; | 881 | struct lpfc_sli_ring *pring = &phba->sli.ring[phba->sli.fcp_ring]; |
882 | struct lpfc_iocbq *iocb; | 882 | struct lpfc_iocbq *iocb; |
883 | struct lpfc_iocbq *abtsiocb; | 883 | struct lpfc_iocbq *abtsiocb; |
@@ -981,7 +981,7 @@ static int | |||
981 | lpfc_reset_lun_handler(struct scsi_cmnd *cmnd) | 981 | lpfc_reset_lun_handler(struct scsi_cmnd *cmnd) |
982 | { | 982 | { |
983 | struct Scsi_Host *shost = cmnd->device->host; | 983 | struct Scsi_Host *shost = cmnd->device->host; |
984 | struct lpfc_hba *phba = (struct lpfc_hba *)shost->hostdata[0]; | 984 | struct lpfc_hba *phba = (struct lpfc_hba *)shost->hostdata; |
985 | struct lpfc_scsi_buf *lpfc_cmd; | 985 | struct lpfc_scsi_buf *lpfc_cmd; |
986 | struct lpfc_iocbq *iocbq, *iocbqrsp; | 986 | struct lpfc_iocbq *iocbq, *iocbqrsp; |
987 | struct lpfc_rport_data *rdata = cmnd->device->hostdata; | 987 | struct lpfc_rport_data *rdata = cmnd->device->hostdata; |
@@ -1094,7 +1094,7 @@ static int | |||
1094 | lpfc_reset_bus_handler(struct scsi_cmnd *cmnd) | 1094 | lpfc_reset_bus_handler(struct scsi_cmnd *cmnd) |
1095 | { | 1095 | { |
1096 | struct Scsi_Host *shost = cmnd->device->host; | 1096 | struct Scsi_Host *shost = cmnd->device->host; |
1097 | struct lpfc_hba *phba = (struct lpfc_hba *)shost->hostdata[0]; | 1097 | struct lpfc_hba *phba = (struct lpfc_hba *)shost->hostdata; |
1098 | struct lpfc_nodelist *ndlp = NULL; | 1098 | struct lpfc_nodelist *ndlp = NULL; |
1099 | int match; | 1099 | int match; |
1100 | int ret = FAILED, i, err_count = 0; | 1100 | int ret = FAILED, i, err_count = 0; |
@@ -1195,7 +1195,7 @@ out: | |||
1195 | static int | 1195 | static int |
1196 | lpfc_slave_alloc(struct scsi_device *sdev) | 1196 | lpfc_slave_alloc(struct scsi_device *sdev) |
1197 | { | 1197 | { |
1198 | struct lpfc_hba *phba = (struct lpfc_hba *)sdev->host->hostdata[0]; | 1198 | struct lpfc_hba *phba = (struct lpfc_hba *)sdev->host->hostdata; |
1199 | struct lpfc_scsi_buf *scsi_buf = NULL; | 1199 | struct lpfc_scsi_buf *scsi_buf = NULL; |
1200 | struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); | 1200 | struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); |
1201 | uint32_t total = 0, i; | 1201 | uint32_t total = 0, i; |
@@ -1251,7 +1251,7 @@ lpfc_slave_alloc(struct scsi_device *sdev) | |||
1251 | static int | 1251 | static int |
1252 | lpfc_slave_configure(struct scsi_device *sdev) | 1252 | lpfc_slave_configure(struct scsi_device *sdev) |
1253 | { | 1253 | { |
1254 | struct lpfc_hba *phba = (struct lpfc_hba *) sdev->host->hostdata[0]; | 1254 | struct lpfc_hba *phba = (struct lpfc_hba *) sdev->host->hostdata; |
1255 | struct fc_rport *rport = starget_to_rport(sdev->sdev_target); | 1255 | struct fc_rport *rport = starget_to_rport(sdev->sdev_target); |
1256 | 1256 | ||
1257 | if (sdev->tagged_supported) | 1257 | if (sdev->tagged_supported) |