]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srp: Avoid skipping srp_reset_host() after a transport error
authorBart Van Assche <bvanassche@acm.org>
Wed, 12 Jun 2013 13:23:04 +0000 (15:23 +0200)
committerRoland Dreier <roland@purestorage.com>
Thu, 27 Jun 2013 23:44:39 +0000 (16:44 -0700)
commit63dd0f79fafe5077bab81270701a06d858db7abd
treee4cad038ce28f9d137f4534f10b456ebd60f51cc
parent5dc3eb0a76bf3bd72fd2f5865c9ce7464c963b49
IB/srp: Avoid skipping srp_reset_host() after a transport error

The SCSI error handler assumes that the transport layer is operational
if an eh_abort_handler() returns SUCCESS.  Hence srp_abort() only
should return SUCCESS if sending the ABORT TASK task management
function succeeded.  This patch avoids the SCSI error handler skipping
the srp_reset_host() call after a transport layer error.

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