]> 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)
commite584168b8b155a3dec02f424af4e319c8d25f9e2
tree2c3721c4c7b8f5722e28ec31ef95076f7b0c5381
parentddfe1b4c21ab9e43e33a5b02dcd539783ddd7bc2
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