diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2006-05-30 01:37:20 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-06-05 19:10:45 -0400 |
commit | 67a611149b2ac5f4af1e36bfffbfe3198cd3712c (patch) | |
tree | f74b70aefc16544901a3a3191bee8be8c467747d /include | |
parent | 9bf0a28c9a24e2cee5deecf89d118254374c75ba (diff) |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/libiscsi.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 17b28f08b692..cbf7e58bd6f9 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -211,7 +211,6 @@ struct iscsi_session { | |||
211 | * - r2tpool */ | 211 | * - r2tpool */ |
212 | int state; /* session state */ | 212 | int state; /* session state */ |
213 | struct list_head item; | 213 | struct list_head item; |
214 | int conn_cnt; | ||
215 | int age; /* counts session re-opens */ | 214 | int age; /* counts session re-opens */ |
216 | 215 | ||
217 | struct list_head connections; /* list of connections */ | 216 | struct list_head connections; /* list of connections */ |