Commit 0575df12 authored by Bart Van Assche's avatar Bart Van Assche Committed by Ben Hutchings

IB/srp: Avoid having aborted requests hang

commit d8536670 upstream.

We need to call scsi_done() for commands after we abort them.
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Acked-by: default avatarDavid Dillow <dillowda@ornl.gov>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 6bfc0805
...@@ -1669,6 +1669,7 @@ static int srp_abort(struct scsi_cmnd *scmnd) ...@@ -1669,6 +1669,7 @@ static int srp_abort(struct scsi_cmnd *scmnd)
SRP_TSK_ABORT_TASK); SRP_TSK_ABORT_TASK);
srp_free_req(target, req, scmnd, 0); srp_free_req(target, req, scmnd, 0);
scmnd->result = DID_ABORT << 16; scmnd->result = DID_ABORT << 16;
scmnd->scsi_done(scmnd);
return SUCCESS; return SUCCESS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment