IB/srp: Fail I/O fast if target offline
authorBart Van Assche <bvanassche@acm.org>
Fri, 28 Jun 2013 12:49:58 +0000 (14:49 +0200)
committerRoland Dreier <roland@purestorage.com>
Mon, 1 Jul 2013 17:37:13 +0000 (10:37 -0700)
commit99e1c1398f44a056b16e78122133988c82b66d97
treedf0d03078df9246b570c2260bf9edc89b09a73b5
parent2742c1dadde602baea6f0547c028154aebd6f1ca
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: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srp/ib_srp.c