From: James Smart Date: Thu, 18 Apr 2013 00:19:00 +0000 (-0400) Subject: [SCSI] lpfc 8.3.39: Fixed iocb flags not being reset for scsi commands X-Git-Tag: firefly_0821_release~3680^2~485^2~1^2~34 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a485eb9a921cd1276fc63b4967e6b713fffb6f3;p=firefly-linux-kernel-4.4.55.git [SCSI] lpfc 8.3.39: Fixed iocb flags not being reset for scsi commands Signed-off-by: James Smart Signed-off-by: James Bottomley --- 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) spin_lock_irqsave(&phba->scsi_buf_list_put_lock, iflag); psb->pCmd = NULL; + psb->cur_iocbq.iocb_flag = LPFC_IO_FCP; list_add_tail(&psb->list, &phba->lpfc_scsi_buf_list_put); spin_unlock_irqrestore(&phba->scsi_buf_list_put_lock, iflag); } @@ -1248,6 +1249,7 @@ lpfc_release_scsi_buf_s4(struct lpfc_hba *phba, struct lpfc_scsi_buf *psb) iflag); } else { psb->pCmd = NULL; + psb->cur_iocbq.iocb_flag = LPFC_IO_FCP; spin_lock_irqsave(&phba->scsi_buf_list_put_lock, iflag); list_add_tail(&psb->list, &phba->lpfc_scsi_buf_list_put); spin_unlock_irqrestore(&phba->scsi_buf_list_put_lock, iflag);