Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96519
b: refs/heads/master
c: c8611f9
h: refs/heads/master
i:
  96517: 86234b1
  96515: e1ceb26
  96511: 38867d6
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed May 9, 2008
1 parent 8a2abee commit d424175
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 4cf1043593db6a337f10e006c23c69e5fc93e722
refs/heads/master: c8611f975403dd20e6503aff8aded5dcb718f75b
12 changes: 6 additions & 6 deletions trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,9 @@ static int __iscsi_complete_pdu(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
if (iscsi_recv_pdu(conn->cls_conn, hdr, data,
datalen))
rc = ISCSI_ERR_CONN_FAILED;
}
} else
mod_timer(&conn->transport_timer,
jiffies + conn->recv_timeout);
iscsi_free_mgmt_task(conn, mtask);
break;
default:
Expand Down Expand Up @@ -1478,11 +1480,9 @@ static void iscsi_check_transport_timeouts(unsigned long data)
}

if (time_before_eq(last_recv + recv_timeout, jiffies)) {
if (time_before_eq(conn->last_ping, last_recv)) {
/* send a ping to try to provoke some traffic */
debug_scsi("Sending nopout as ping on conn %p\n", conn);
iscsi_send_nopout(conn, NULL);
}
/* send a ping to try to provoke some traffic */
debug_scsi("Sending nopout as ping on conn %p\n", conn);
iscsi_send_nopout(conn, NULL);
next_timeout = conn->last_ping + (conn->ping_timeout * HZ);
} else
next_timeout = last_recv + recv_timeout;
Expand Down

0 comments on commit d424175

Please sign in to comment.