diff options
author | Bart Van Assche <bvanassche@acm.org> | 2012-08-24 06:29:11 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-09-30 23:36:48 -0400 |
commit | d8536670916a685df116b5c2cb256573fd25e4e3 (patch) | |
tree | 5b5bf699030e19d41108f08a2fe79263a32a1904 /drivers/infiniband | |
parent | 9b796d06d5d1b1e85ae2316a283ea11dd739ef96 (diff) |
IB/srp: Avoid having aborted requests hang
We need to call scsi_done() for commands after we abort them.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Cc: <stable@vger.kernel.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index ac66e6b43ee2..922d845f76b0 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c | |||
@@ -1687,6 +1687,7 @@ static int srp_abort(struct scsi_cmnd *scmnd) | |||
1687 | SRP_TSK_ABORT_TASK); | 1687 | SRP_TSK_ABORT_TASK); |
1688 | srp_free_req(target, req, scmnd, 0); | 1688 | srp_free_req(target, req, scmnd, 0); |
1689 | scmnd->result = DID_ABORT << 16; | 1689 | scmnd->result = DID_ABORT << 16; |
1690 | scmnd->scsi_done(scmnd); | ||
1690 | 1691 | ||
1691 | return SUCCESS; | 1692 | return SUCCESS; |
1692 | } | 1693 | } |