diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index eadd241eeff1..75a48e38c1fe 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -3056,8 +3056,9 @@ lpfc_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) | |||
3056 | } | 3056 | } |
3057 | ndlp = rdata->pnode; | 3057 | ndlp = rdata->pnode; |
3058 | 3058 | ||
3059 | if (!(phba->sli3_options & LPFC_SLI3_BG_ENABLED) && | 3059 | if ((scsi_get_prot_op(cmnd) != SCSI_PROT_NORMAL) && |
3060 | scsi_get_prot_op(cmnd) != SCSI_PROT_NORMAL) { | 3060 | (!(phba->sli3_options & LPFC_SLI3_BG_ENABLED) || |
3061 | (phba->sli_rev == LPFC_SLI_REV4))) { | ||
3061 | 3062 | ||
3062 | lpfc_printf_log(phba, KERN_ERR, LOG_BG, | 3063 | lpfc_printf_log(phba, KERN_ERR, LOG_BG, |
3063 | "9058 BLKGRD: ERROR: rcvd protected cmd:%02x" | 3064 | "9058 BLKGRD: ERROR: rcvd protected cmd:%02x" |
@@ -3691,9 +3692,9 @@ lpfc_bus_reset_handler(struct scsi_cmnd *cmnd) | |||
3691 | fc_host_post_vendor_event(shost, fc_get_event_number(), | 3692 | fc_host_post_vendor_event(shost, fc_get_event_number(), |
3692 | sizeof(scsi_event), (char *)&scsi_event, LPFC_NL_VENDOR_ID); | 3693 | sizeof(scsi_event), (char *)&scsi_event, LPFC_NL_VENDOR_ID); |
3693 | 3694 | ||
3694 | ret = fc_block_scsi_eh(cmnd); | 3695 | status = fc_block_scsi_eh(cmnd); |
3695 | if (ret) | 3696 | if (status) |
3696 | return ret; | 3697 | return status; |
3697 | 3698 | ||
3698 | /* | 3699 | /* |
3699 | * Since the driver manages a single bus device, reset all | 3700 | * Since the driver manages a single bus device, reset all |