IB/srp: Don't schedule reconnect from srp
authorIshai Rabinovitz <ishai@mellanox.co.il>
Thu, 7 Sep 2006 12:00:01 +0000 (15:00 +0300)
committerRoland Dreier <rolandd@cisco.com>
Thu, 14 Sep 2006 20:51:40 +0000 (13:51 -0700)
If there is a problem in the connection, the SCSI mid-layer will
eventually call srp_reset_host(), which will call srp_reconnect(), so
we do not need to schedule a call to srp_reconnect_work() from
srp_completion().

Removing this prevents srp_reset_host() from failing if a reconnect
scheduled from srp_completion() is already in progress, which in turn
was causing crashes as both SCSI midlayer and srp_reconnect() were
cancelling commands.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found