Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263806
b: refs/heads/master
c: 21cc0bd
h: refs/heads/master
v: v3
  • Loading branch information
Vasu Dev authored and James Bottomley committed Aug 29, 2011
1 parent 9f22bfe commit 4346587
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: 77a2b73a7805a3c6a473b6741aa514ef40295d26
refs/heads/master: 21cc0bd3a9e524b44a4f0ff05ac612aa0ff1a26e
11 changes: 9 additions & 2 deletions trunk/drivers/scsi/libfc/fc_fcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,11 @@ int fc_eh_abort(struct scsi_cmnd *sc_cmd)
struct fc_fcp_internal *si;
int rc = FAILED;
unsigned long flags;
int rval;

rval = fc_block_scsi_eh(sc_cmd);
if (rval)
return rval;

lport = shost_priv(sc_cmd->device->host);
if (lport->state != LPORT_ST_READY)
Expand Down Expand Up @@ -2068,9 +2073,9 @@ int fc_eh_device_reset(struct scsi_cmnd *sc_cmd)
int rc = FAILED;
int rval;

rval = fc_remote_port_chkready(rport);
rval = fc_block_scsi_eh(sc_cmd);
if (rval)
goto out;
return rval;

lport = shost_priv(sc_cmd->device->host);

Expand Down Expand Up @@ -2116,6 +2121,8 @@ int fc_eh_host_reset(struct scsi_cmnd *sc_cmd)

FC_SCSI_DBG(lport, "Resetting host\n");

fc_block_scsi_eh(sc_cmd);

lport->tt.lport_reset(lport);
wait_tmo = jiffies + FC_HOST_RESET_TIMEOUT;
while (!fc_fcp_lport_queue_ready(lport) && time_before(jiffies,
Expand Down

0 comments on commit 4346587

Please sign in to comment.