diff options
author | Bart Van Assche <bvanassche@acm.org> | 2013-07-10 15:36:35 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-07-11 23:43:48 (GMT) |
commit | 80d5e8a235624cd3c0e24be7c070fd6f445e590d (patch) | |
tree | 428561212c996cf366e9571b9db2195f2f9810cf /drivers/infiniband/ulp | |
parent | e8ca413558de8ea235a1223074c4ed09616b9034 (diff) | |
download | linux-fsl-qoriq-80d5e8a235624cd3c0e24be7c070fd6f445e590d.tar.xz |
IB/srp: Let srp_abort() return FAST_IO_FAIL if TL offline
If the transport layer is offline it is more appropriate to let
srp_abort() return FAST_IO_FAIL instead of SUCCESS.
Reported-by: Sebastian Riemer <sebastian.riemer@profitbricks.com>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 9d8b46e..f93baf8 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1753,8 +1753,7 @@ static int srp_abort(struct scsi_cmnd *scmnd) if (!req || !srp_claim_req(target, req, scmnd)) return FAILED; if (srp_send_tsk_mgmt(target, req->index, scmnd->device->lun, - SRP_TSK_ABORT_TASK) == 0 || - target->transport_offline) + SRP_TSK_ABORT_TASK) == 0) ret = SUCCESS; else if (target->transport_offline) ret = FAST_IO_FAIL; |