diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2006-05-18 21:31:42 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-05-20 10:36:17 -0400 |
commit | 656cffc95f0cb8211aa75eaca249e6ff4f59ec83 (patch) | |
tree | 7b10e224ef3ac140570101ed98c918949863995b /include/scsi/libiscsi.h | |
parent | 790f39a2d5f03623b027f340b945f135d006ceba (diff) |
[SCSI] iscsi: fix command requeues during iscsi recovery
Do not flush queues then block session. This will cause commands
to needlessly swing around on us and remove goofy
recovery_failed field and replace with state value.
And do not start recovery from within the host reset function.
This causeis too many problems becuase open-iscsi was desinged to
call out to userspace then have userpscae decide if we should
go into recovery or kill the session.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 2dba929a2a05..17b28f08b692 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -210,7 +210,6 @@ struct iscsi_session { | |||
210 | * - mgmtpool, * | 210 | * - mgmtpool, * |
211 | * - r2tpool */ | 211 | * - r2tpool */ |
212 | int state; /* session state */ | 212 | int state; /* session state */ |
213 | int recovery_failed; | ||
214 | struct list_head item; | 213 | struct list_head item; |
215 | int conn_cnt; | 214 | int conn_cnt; |
216 | int age; /* counts session re-opens */ | 215 | int age; /* counts session re-opens */ |
@@ -241,8 +240,6 @@ iscsi_session_setup(struct iscsi_transport *, struct scsi_transport_template *, | |||
241 | int, int, uint32_t, uint32_t *); | 240 | int, int, uint32_t, uint32_t *); |
242 | extern void iscsi_session_teardown(struct iscsi_cls_session *); | 241 | extern void iscsi_session_teardown(struct iscsi_cls_session *); |
243 | extern struct iscsi_session *class_to_transport_session(struct iscsi_cls_session *); | 242 | extern struct iscsi_session *class_to_transport_session(struct iscsi_cls_session *); |
244 | extern void iscsi_start_session_recovery(struct iscsi_session *, | ||
245 | struct iscsi_conn *, int); | ||
246 | extern void iscsi_session_recovery_timedout(struct iscsi_cls_session *); | 243 | extern void iscsi_session_recovery_timedout(struct iscsi_cls_session *); |
247 | 244 | ||
248 | #define session_to_cls(_sess) \ | 245 | #define session_to_cls(_sess) \ |