Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316771
b: refs/heads/master
c: 3a70730
h: refs/heads/master
i:
  316769: 0fa4c61
  316767: 8aae97b
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed Jul 20, 2012
1 parent c42ca9e commit aea3b49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 618a5230b8fa62bc7901b8b754b4379b3fcfa0f9
refs/heads/master: 3a70730aa06c37d46086ecdbca7107531fe2d2c5
24 changes: 12 additions & 12 deletions trunk/drivers/scsi/lpfc/lpfc_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4412,12 +4412,12 @@ lpfc_abort_handler(struct scsi_cmnd *cmnd)
struct lpfc_iocbq *abtsiocb;
struct lpfc_scsi_buf *lpfc_cmd;
IOCB_t *cmd, *icmd;
int ret = SUCCESS;
int ret = SUCCESS, status = 0;
DECLARE_WAIT_QUEUE_HEAD_ONSTACK(waitq);

ret = fc_block_scsi_eh(cmnd);
if (ret)
return ret;
status = fc_block_scsi_eh(cmnd);
if (status)
return status;

spin_lock_irq(&phba->hbalock);
/* driver queued commands are in process of being flushed */
Expand All @@ -4435,7 +4435,7 @@ lpfc_abort_handler(struct scsi_cmnd *cmnd)
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
"2873 SCSI Layer I/O Abort Request IO CMPL Status "
"x%x ID %d LUN %d\n",
ret, cmnd->device->id, cmnd->device->lun);
SUCCESS, cmnd->device->id, cmnd->device->lun);
return SUCCESS;
}

Expand Down Expand Up @@ -4762,7 +4762,7 @@ lpfc_device_reset_handler(struct scsi_cmnd *cmnd)
unsigned tgt_id = cmnd->device->id;
unsigned int lun_id = cmnd->device->lun;
struct lpfc_scsi_event_header scsi_event;
int status;
int status, ret = SUCCESS;

if (!rdata) {
lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
Expand Down Expand Up @@ -4803,9 +4803,9 @@ lpfc_device_reset_handler(struct scsi_cmnd *cmnd)
* So, continue on.
* We will report success if all the i/o aborts successfully.
*/
status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
ret = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
LPFC_CTX_LUN);
return status;
return ret;
}

/**
Expand All @@ -4829,7 +4829,7 @@ lpfc_target_reset_handler(struct scsi_cmnd *cmnd)
unsigned tgt_id = cmnd->device->id;
unsigned int lun_id = cmnd->device->lun;
struct lpfc_scsi_event_header scsi_event;
int status;
int status, ret = SUCCESS;

if (!rdata) {
lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
Expand Down Expand Up @@ -4870,9 +4870,9 @@ lpfc_target_reset_handler(struct scsi_cmnd *cmnd)
* So, continue on.
* We will report success if all the i/o aborts successfully.
*/
status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
LPFC_CTX_TGT);
return status;
ret = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
LPFC_CTX_TGT);
return ret;
}

/**
Expand Down

0 comments on commit aea3b49

Please sign in to comment.