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)
commitadd7afc756eddd5d02fd986d19e6300b3e1a5ae8
tree78b79105cae9166ed194180dc9d6f3c8d4dc8fb3
parent63b98080daa35f0d682db04f4fb7ada010888752
IB/srp: Don't schedule reconnect from srp

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>
drivers/infiniband/ulp/srp/ib_srp.c