]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srp: Avoid offlining operational SCSI devices
authorBart Van Assche <bvanassche@acm.org>
Thu, 10 Oct 2013 11:52:33 +0000 (13:52 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:18 +0000 (14:43 -0800)
commita704a33b78803c5e42f1e03c06dcdf92ec00cd1a
tree2c3721c4c7b8f5722e28ec31ef95076f7b0c5381
parent7d0da74201e2f0dbb2ab7751c08cc498c54f165d
IB/srp: Avoid offlining operational SCSI devices

If SCSI commands are submitted with a SCSI request timeout that is
lower than the the IB RC timeout, it can happen that the SCSI error
handler has already started device recovery before transport layer
error handling starts.  So it can happen that the SCSI error handler
tries to abort a SCSI command after it has been reset by
srp_rport_reconnect().

Tell the SCSI error handler that such commands have finished and that
it is not necessary to continue its recovery strategy for commands
that have been reset by srp_rport_reconnect().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srp/ib_srp.c