aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 685eaec53218..7688b8f83e98 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -3087,14 +3087,15 @@ static void iscsi_start_session_recovery(struct iscsi_session *session,
3087 session->state = ISCSI_STATE_TERMINATE; 3087 session->state = ISCSI_STATE_TERMINATE;
3088 else if (conn->stop_stage != STOP_CONN_RECOVER) 3088 else if (conn->stop_stage != STOP_CONN_RECOVER)
3089 session->state = ISCSI_STATE_IN_RECOVERY; 3089 session->state = ISCSI_STATE_IN_RECOVERY;
3090
3091 old_stop_stage = conn->stop_stage;
3092 conn->stop_stage = flag;
3090 spin_unlock_bh(&session->lock); 3093 spin_unlock_bh(&session->lock);
3091 3094
3092 del_timer_sync(&conn->transport_timer); 3095 del_timer_sync(&conn->transport_timer);
3093 iscsi_suspend_tx(conn); 3096 iscsi_suspend_tx(conn);
3094 3097
3095 spin_lock_bh(&session->lock); 3098 spin_lock_bh(&session->lock);
3096 old_stop_stage = conn->stop_stage;
3097 conn->stop_stage = flag;
3098 conn->c_stage = ISCSI_CONN_STOPPED; 3099 conn->c_stage = ISCSI_CONN_STOPPED;
3099 spin_unlock_bh(&session->lock); 3100 spin_unlock_bh(&session->lock);
3100 3101