Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8536670 authored by Bart Van Assche's avatar Bart Van Assche Committed by Roland Dreier
Browse files

IB/srp: Avoid having aborted requests hang



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>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 9b796d06
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}