diff options
author | James Smart <james.smart@emulex.com> | 2013-04-17 20:19:00 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 16:08:53 -0400 |
commit | 6a485eb9a921cd1276fc63b4967e6b713fffb6f3 (patch) | |
tree | a58e36d83081d974954e4a0ad2f1a5bacec21c2d | |
parent | ea714f3dab0484b38fa6040ba45d2be7c4c5b752 (diff) |
[SCSI] lpfc 8.3.39: Fixed iocb flags not being reset for scsi commands
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 959067c71060..8523b278ec9d 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -1215,6 +1215,7 @@ lpfc_release_scsi_buf_s3(struct lpfc_hba *phba, struct lpfc_scsi_buf *psb) | |||
1215 | 1215 | ||
1216 | spin_lock_irqsave(&phba->scsi_buf_list_put_lock, iflag); | 1216 | spin_lock_irqsave(&phba->scsi_buf_list_put_lock, iflag); |
1217 | psb->pCmd = NULL; | 1217 | psb->pCmd = NULL; |
1218 | psb->cur_iocbq.iocb_flag = LPFC_IO_FCP; | ||
1218 | list_add_tail(&psb->list, &phba->lpfc_scsi_buf_list_put); | 1219 | list_add_tail(&psb->list, &phba->lpfc_scsi_buf_list_put); |
1219 | spin_unlock_irqrestore(&phba->scsi_buf_list_put_lock, iflag); | 1220 | spin_unlock_irqrestore(&phba->scsi_buf_list_put_lock, iflag); |
1220 | } | 1221 | } |
@@ -1248,6 +1249,7 @@ lpfc_release_scsi_buf_s4(struct lpfc_hba *phba, struct lpfc_scsi_buf *psb) | |||
1248 | iflag); | 1249 | iflag); |
1249 | } else { | 1250 | } else { |
1250 | psb->pCmd = NULL; | 1251 | psb->pCmd = NULL; |
1252 | psb->cur_iocbq.iocb_flag = LPFC_IO_FCP; | ||
1251 | spin_lock_irqsave(&phba->scsi_buf_list_put_lock, iflag); | 1253 | spin_lock_irqsave(&phba->scsi_buf_list_put_lock, iflag); |
1252 | list_add_tail(&psb->list, &phba->lpfc_scsi_buf_list_put); | 1254 | list_add_tail(&psb->list, &phba->lpfc_scsi_buf_list_put); |
1253 | spin_unlock_irqrestore(&phba->scsi_buf_list_put_lock, iflag); | 1255 | spin_unlock_irqrestore(&phba->scsi_buf_list_put_lock, iflag); |