IB/srp: Avoid having aborted requests hang
authorBart Van Assche <bvanassche@acm.org>
Fri, 24 Aug 2012 10:29:11 +0000 (10:29 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 1 Oct 2012 03:36:48 +0000 (20:36 -0700)
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>
drivers/infiniband/ulp/srp/ib_srp.c

index ac66e6b43ee200030b9882e9e3d49d8d0cda049b..922d845f76b0a25b0090d581efeef35578fdd868 100644 (file)
@@ -1687,6 +1687,7 @@ static int srp_abort(struct scsi_cmnd *scmnd)
                          SRP_TSK_ABORT_TASK);
        srp_free_req(target, req, scmnd, 0);
        scmnd->result = DID_ABORT << 16;
+       scmnd->scsi_done(scmnd);
 
        return SUCCESS;
 }