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

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

IB/srp: Fail I/O fast if target offline



If reconnecting failed we know that no command completion will
be received anymore.  Hence let the SCSI error handler fail such
commands immediately.

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>
parent 2742c1da
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1754,6 +1754,8 @@ static int srp_abort(struct scsi_cmnd *scmnd)
			      SRP_TSK_ABORT_TASK) == 0 ||
	    target->transport_offline)
		ret = SUCCESS;
	else if (target->transport_offline)
		ret = FAST_IO_FAIL;
	else
		ret = FAILED;
	srp_free_req(target, req, scmnd, 0);