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 <[email protected]>
Acked-by: David Dillow <[email protected]>
Cc: <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
Bart Van Assche 2012-08-24 10:29:11 +00:00 • committed by Roland Dreier
commit d853667091

View 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;
}