If a SCSI command times out it is passed to the SCSI error handler. The SCSI error handler keeps trying to abort a command until aborting succeeded or the command has been finished. Avoid that attempts to abort a command without RDMA RC connection trigger an endless loop.
Signed-off-by: Bart Van Assche <bvanass...@acm.org> Cc: David Dillow <d...@thedillows.org> Cc: Roland Dreier <rol...@purestorage.com> Cc: Or Gerlitz <or.gerl...@gmail.com> Cc: Alex Turin <ale...@mellanox.com> --- drivers/infiniband/ulp/srp/ib_srp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index d5088ce..25f139b 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1736,7 +1736,7 @@ static int srp_abort(struct scsi_cmnd *scmnd) shost_printk(KERN_ERR, target->scsi_host, "SRP abort called\n"); - if (!req || target->qp_in_error || !srp_claim_req(target, req, scmnd)) + if (!req || !srp_claim_req(target, req, scmnd)) return FAILED; srp_send_tsk_mgmt(target, req->index, scmnd->device->lun, SRP_TSK_ABORT_TASK); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html