[SCSI] iscsi: don't switch states when just cleaning up
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 30 May 2006 05:37:20 +0000 (00:37 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Mon, 5 Jun 2006 23:10:45 +0000 (19:10 -0400)
commit67a611149b2ac5f4af1e36bfffbfe3198cd3712c
treef74b70aefc16544901a3a3191bee8be8c467747d
parent9bf0a28c9a24e2cee5deecf89d118254374c75ba
[SCSI] iscsi: don't switch states when just cleaning up

If recovery failed or we are in recovery only overwrite the state
if we are going to terminate the session or if we logged back in.

STOP_CONN_SUSPEND and conn_cnt are not used. We only support
a single connection session ATM, so cleanup that code while
we are working around it.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/iscsi_tcp.c
drivers/scsi/libiscsi.c
include/scsi/libiscsi.h