Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148055
b: refs/heads/master
c: 26013ad
h: refs/heads/master
i:
  148053: 1a5f27a
  148051: 7d71022
  148047: 9e76b5a
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed May 23, 2009
1 parent f8373a5 commit adc7ddb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: edbc9aa0580c0aca96ac8d11bfb2defa81d91bb3
refs/heads/master: 26013ad4c43f49a038a6489c35e9b901491339fe
11 changes: 8 additions & 3 deletions trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ __iscsi_conn_send_pdu(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
*/
task = conn->login_task;
else {
if (session->state != ISCSI_STATE_LOGGED_IN)
return NULL;

BUG_ON(conn->c_stage == ISCSI_CONN_INITIAL_STAGE);
BUG_ON(conn->c_stage == ISCSI_CONN_STOPPED);

Expand Down Expand Up @@ -2566,8 +2569,6 @@ static void iscsi_start_session_recovery(struct iscsi_session *session,
{
int old_stop_stage;

del_timer_sync(&conn->transport_timer);

mutex_lock(&session->eh_mutex);
spin_lock_bh(&session->lock);
if (conn->stop_stage == STOP_CONN_TERM) {
Expand All @@ -2585,13 +2586,17 @@ static void iscsi_start_session_recovery(struct iscsi_session *session,
session->state = ISCSI_STATE_TERMINATE;
else if (conn->stop_stage != STOP_CONN_RECOVER)
session->state = ISCSI_STATE_IN_RECOVERY;
spin_unlock_bh(&session->lock);

del_timer_sync(&conn->transport_timer);
iscsi_suspend_tx(conn);

spin_lock_bh(&session->lock);
old_stop_stage = conn->stop_stage;
conn->stop_stage = flag;
conn->c_stage = ISCSI_CONN_STOPPED;
spin_unlock_bh(&session->lock);

iscsi_suspend_tx(conn);
/*
* for connection level recovery we should not calculate
* header digest. conn->hdr_size used for optimization
Expand Down

0 comments on commit adc7ddb

Please sign in to comment.