diff options
author | andrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com> | 2006-02-07 11:45:35 -0500 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-07 11:54:07 -0500 |
commit | 0d4be1240b2668b6a3ffadb15eb660baf52f8377 (patch) | |
tree | 71ace6b819e5efe8951c99baaeadf0bfc56c6123 /drivers/scsi | |
parent | 247ec457ce108000987be517c83868f6361d9f76 (diff) |
[PATCH] qla2xxx: Correct lun assignment during IOCB submission.
4gb products require an IOCB's FCP-LUN to be formatted in
wire-format prior to submission.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_iocb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 7ec0b8d6f07b..6544b6d0891d 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c | |||
@@ -814,6 +814,7 @@ qla24xx_start_scsi(srb_t *sp) | |||
814 | cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; | 814 | cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; |
815 | 815 | ||
816 | int_to_scsilun(sp->cmd->device->lun, &cmd_pkt->lun); | 816 | int_to_scsilun(sp->cmd->device->lun, &cmd_pkt->lun); |
817 | host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun)); | ||
817 | 818 | ||
818 | /* Load SCSI command packet. */ | 819 | /* Load SCSI command packet. */ |
819 | memcpy(cmd_pkt->fcp_cdb, cmd->cmnd, cmd->cmd_len); | 820 | memcpy(cmd_pkt->fcp_cdb, cmd->cmnd, cmd->cmd_len); |