diff options
| -rw-r--r-- | drivers/scsi/libiscsi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 98164f3c3517..b43bf1d60dac 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c | |||
| @@ -730,7 +730,9 @@ static int __iscsi_complete_pdu(struct iscsi_conn *conn, struct iscsi_hdr *hdr, | |||
| 730 | if (iscsi_recv_pdu(conn->cls_conn, hdr, data, | 730 | if (iscsi_recv_pdu(conn->cls_conn, hdr, data, |
| 731 | datalen)) | 731 | datalen)) |
| 732 | rc = ISCSI_ERR_CONN_FAILED; | 732 | rc = ISCSI_ERR_CONN_FAILED; |
| 733 | } | 733 | } else |
| 734 | mod_timer(&conn->transport_timer, | ||
| 735 | jiffies + conn->recv_timeout); | ||
| 734 | iscsi_free_mgmt_task(conn, mtask); | 736 | iscsi_free_mgmt_task(conn, mtask); |
| 735 | break; | 737 | break; |
| 736 | default: | 738 | default: |
| @@ -1478,11 +1480,9 @@ static void iscsi_check_transport_timeouts(unsigned long data) | |||
| 1478 | } | 1480 | } |
| 1479 | 1481 | ||
| 1480 | if (time_before_eq(last_recv + recv_timeout, jiffies)) { | 1482 | if (time_before_eq(last_recv + recv_timeout, jiffies)) { |
| 1481 | if (time_before_eq(conn->last_ping, last_recv)) { | 1483 | /* send a ping to try to provoke some traffic */ |
| 1482 | /* send a ping to try to provoke some traffic */ | 1484 | debug_scsi("Sending nopout as ping on conn %p\n", conn); |
| 1483 | debug_scsi("Sending nopout as ping on conn %p\n", conn); | 1485 | iscsi_send_nopout(conn, NULL); |
| 1484 | iscsi_send_nopout(conn, NULL); | ||
| 1485 | } | ||
| 1486 | next_timeout = conn->last_ping + (conn->ping_timeout * HZ); | 1486 | next_timeout = conn->last_ping + (conn->ping_timeout * HZ); |
| 1487 | } else | 1487 | } else |
| 1488 | next_timeout = last_recv + recv_timeout; | 1488 | next_timeout = last_recv + recv_timeout; |
