Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204123
b: refs/heads/master
c: 0db6f43
h: refs/heads/master
i:
  204121: 711179f
  204119: 585d12a
v: v3
  • Loading branch information
Roel Kluin authored and James Bottomley committed Jul 27, 2010
1 parent 3e6808e commit fab316c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 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: 1c4bfe6305215f09f3e80a14a824e4ae45b2c7ed
refs/heads/master: 0db6f4353d68c0108b5fe0bad8259de0197589c6
22 changes: 8 additions & 14 deletions trunk/drivers/scsi/fnic/fnic_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,11 +1246,10 @@ int fnic_abort_cmd(struct scsi_cmnd *sc)
lp = shost_priv(sc->device->host);

fnic = lport_priv(lp);
FNIC_SCSI_DBG(KERN_DEBUG,
fnic->lport->host,
"Abort Cmd called FCID 0x%x, LUN 0x%x TAG %d\n",
(starget_to_rport(scsi_target(sc->device)))->port_id,
sc->device->lun, sc->request->tag);
rport = starget_to_rport(scsi_target(sc->device));
FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
"Abort Cmd called FCID 0x%x, LUN 0x%x TAG %d\n",
rport->port_id, sc->device->lun, sc->request->tag);

if (lp->state != LPORT_ST_READY || !(lp->link_up)) {
ret = FAILED;
Expand Down Expand Up @@ -1299,7 +1298,6 @@ int fnic_abort_cmd(struct scsi_cmnd *sc)
* port is up, then send abts to the remote port to terminate
* the IO. Else, just locally terminate the IO in the firmware
*/
rport = starget_to_rport(scsi_target(sc->device));
if (fc_remote_port_chkready(rport) == 0)
task_req = FCPIO_ITMF_ABT_TASK;
else
Expand Down Expand Up @@ -1418,7 +1416,6 @@ static int fnic_clean_pending_aborts(struct fnic *fnic,
unsigned long flags;
int ret = 0;
struct scsi_cmnd *sc;
struct fc_rport *rport;
struct scsi_lun fc_lun;
struct scsi_device *lun_dev = lr_sc->device;
DECLARE_COMPLETION_ONSTACK(tm_done);
Expand Down Expand Up @@ -1458,7 +1455,6 @@ static int fnic_clean_pending_aborts(struct fnic *fnic,

/* Now queue the abort command to firmware */
int_to_scsilun(sc->device->lun, &fc_lun);
rport = starget_to_rport(scsi_target(sc->device));

if (fnic_queue_abort_io_req(fnic, tag,
FCPIO_ITMF_ABT_TASK_TERM,
Expand Down Expand Up @@ -1528,18 +1524,16 @@ int fnic_device_reset(struct scsi_cmnd *sc)
lp = shost_priv(sc->device->host);

fnic = lport_priv(lp);
FNIC_SCSI_DBG(KERN_DEBUG,
fnic->lport->host,
"Device reset called FCID 0x%x, LUN 0x%x\n",
(starget_to_rport(scsi_target(sc->device)))->port_id,
sc->device->lun);

rport = starget_to_rport(scsi_target(sc->device));
FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
"Device reset called FCID 0x%x, LUN 0x%x\n",
rport->port_id, sc->device->lun);

if (lp->state != LPORT_ST_READY || !(lp->link_up))
goto fnic_device_reset_end;

/* Check if remote port up */
rport = starget_to_rport(scsi_target(sc->device));
if (fc_remote_port_chkready(rport))
goto fnic_device_reset_end;

Expand Down

0 comments on commit fab316c

Please sign in to comment.