Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173705
b: refs/heads/master
c: fdd46dc
h: refs/heads/master
i:
  173703: 6b5fe05
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Dec 4, 2009
1 parent f7cd26f commit 0a353ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 3fe5ae8b4c4d3a82c755074878da7ddb9dde381e
refs/heads/master: fdd46dcbe4468a1f47a2cc9be442d11c3d21dd68
9 changes: 5 additions & 4 deletions trunk/drivers/scsi/scsi_transport_iscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,10 @@ static void __iscsi_block_session(struct work_struct *work)
spin_unlock_irqrestore(&session->lock, flags);
scsi_target_block(&session->dev);
ISCSI_DBG_TRANS_SESSION(session, "Completed SCSI target blocking\n");
queue_delayed_work(iscsi_eh_timer_workq, &session->recovery_work,
session->recovery_tmo * HZ);
if (session->recovery_tmo >= 0)
queue_delayed_work(iscsi_eh_timer_workq,
&session->recovery_work,
session->recovery_tmo * HZ);
}

void iscsi_block_session(struct iscsi_cls_session *session)
Expand Down Expand Up @@ -1348,8 +1350,7 @@ iscsi_set_param(struct iscsi_transport *transport, struct iscsi_uevent *ev)
switch (ev->u.set_param.param) {
case ISCSI_PARAM_SESS_RECOVERY_TMO:
sscanf(data, "%d", &value);
if (value != 0)
session->recovery_tmo = value;
session->recovery_tmo = value;
break;
default:
err = transport->set_param(conn, ev->u.set_param.param,
Expand Down

0 comments on commit 0a353ea

Please sign in to comment.