Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358888
b: refs/heads/master
c: 3780d1f
h: refs/heads/master
v: v3
  • Loading branch information
Bart Van Assche authored and Roland Dreier committed Feb 25, 2013
1 parent 87355b4 commit 3e0fd79
Show file tree
Hide file tree
Showing 2 changed files with 4 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: e1b2f13aba9ff714d23ecd4a950e744ee7ad72e1
refs/heads/master: 3780d1f08856f692116bcf026e4acf1c521df1c7
5 changes: 3 additions & 2 deletions trunk/drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,9 @@ static int srp_send_tsk_mgmt(struct srp_target_port *target,
struct srp_iu *iu;
struct srp_tsk_mgmt *tsk_mgmt;

if (!target->connected || target->qp_in_error)
return -1;

init_completion(&target->tsk_mgmt_done);

spin_lock_irq(&target->lock);
Expand Down Expand Up @@ -1754,8 +1757,6 @@ static int srp_reset_device(struct scsi_cmnd *scmnd)

shost_printk(KERN_ERR, target->scsi_host, "SRP reset_device called\n");

if (target->qp_in_error)
return FAILED;
if (srp_send_tsk_mgmt(target, SRP_TAG_NO_REQ, scmnd->device->lun,
SRP_TSK_LUN_RESET))
return FAILED;
Expand Down

0 comments on commit 3e0fd79

Please sign in to comment.