mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
[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>
This commit is contained in:
parent
9bf0a28c9a
commit
67a611149b
3 changed files with 33 additions and 63 deletions
|
@ -211,7 +211,6 @@ struct iscsi_session {
|
|||
* - r2tpool */
|
||||
int state; /* session state */
|
||||
struct list_head item;
|
||||
int conn_cnt;
|
||||
int age; /* counts session re-opens */
|
||||
|
||||
struct list_head connections; /* list of connections */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue